Finding of value coordinate

1 view (last 30 days)
MOHD UWAIS
MOHD UWAIS on 10 Jan 2022
Commented: Walter Roberson on 10 Jan 2022
For example,
x=-50:1:50;
y=4*x.^2+5;
plot(x,y,'*-')
How we can find x value corresponding to the minimum value of y.

Accepted Answer

Walter Roberson
Walter Roberson on 10 Jan 2022
[~, idx] = min(y);
x(idx)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by