Finding of value coordinate

1 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by