Local extrema of a function
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!