フィルターのクリア

Local extrema of a function

3 ビュー (過去 30 日間)
ILoveMath
ILoveMath 2022 年 4 月 27 日
編集済み: Image Analyst 2022 年 4 月 27 日
I have this so far:
clc;
syms x
f= 0.1*x.^3-1.2*x.^2+10;
fprintf('The function is x^3/10-(6*x^2)/5+10\n\n')
fx= diff(f,x);
[xc]= solve(fx);
fprintf('The Critical points: \n');
disp([xc])
fplot(f)
grid on;
I want to display the local maximum and minimum as (x,y), but am unsure how to.

回答 (1 件)

David Hill
David Hill 2022 年 4 月 27 日
p=[.1,-1.2,0,10];
r=roots(polyder(p))

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by