how do you get the max y value in an fplot?
27 ビュー (過去 30 日間)
古いコメントを表示
How would I find the max y value in the following fplot
mu = @(theta) (sind(theta)/(1.8925 + cosd(theta)));
fplot(mu,[0 180]);
0 件のコメント
回答 (2 件)
madhan ravi
2019 年 6 月 17 日
h = fplot(...);
MAX = max(h.YData)
2 件のコメント
DKonk
2022 年 11 月 19 日
Is it possible to execute this command, then find out the x location of this max?
dpb
2019 年 6 月 17 日
Look at the documentation and see what else you can do with fplot...
fp=fplot(mu,[0 100]);
[mxMu,imx]=max(fp.YData); % max, location
NB: Above is the maximum of the calculated points, not necessarily the functional maximum.
ADDENDUM: To avoid the warning message from fplot write your function with the "dot" operator ./ instead of just /
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!