Finding of value coordinate

1 visualizzazione (ultimi 30 giorni)
MOHD UWAIS
MOHD UWAIS il 10 Gen 2022
Commentato: Walter Roberson il 10 Gen 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.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by