Borrar filtros
Borrar filtros

Finding of value coordinate

1 visualización (últimos 30 días)
MOHD UWAIS
MOHD UWAIS el 10 de En. de 2022
Comentada: Walter Roberson el 10 de En. de 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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de En. de 2022
[~, idx] = min(y);
x(idx)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by