how do you get the max y value in an fplot?
28 views (last 30 days)
Show older comments
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 Comments
Answers (2)
madhan ravi
on 17 Jun 2019
h = fplot(...);
MAX = max(h.YData)
2 Comments
DKonk
on 19 Nov 2022
Is it possible to execute this command, then find out the x location of this max?
dpb
on 17 Jun 2019
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 Comments
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!