identifying the critical points of a bivariate function

2 ビュー (過去 30 日間)
ektor
ektor 2020 年 3 月 9 日
編集済み: ektor 2020 年 3 月 9 日
Dear all,
I have this function below and I plotted it in a 3D space. Is it possible to mark the critical points on the graph so as to be visible to the reader? Similarly for the max or min value of the function?
Best
syms x y
f = 4*x.^2+3*y.^2 ;
fx = diff(f,x);
fy = diff(f,y);
[xc,yc] = solve(fx,fy,x,y); [xc,yc];
fxx = diff(fx,x); fxy = diff(fx,y); fyy = diff(fy,y);
D = fxx*fyy - fxy^2;
subs(D,{x,y},{xc(1),yc(1)});
subs(fxx,{x,y},{xc(1),yc(1)});
figure(1); ezsurf(f,[-10,50,-10,50]);

回答 (0 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by