How to indicate the maximum value in the plotted curve in matlab?

9 visualizaciones (últimos 30 días)
Amy Topaz
Amy Topaz el 14 de Abr. de 2022
Editada: Matt J el 14 de Abr. de 2022
How to indicate the maximum value of the curve in a plotted curve in matlab

Respuestas (1)

Matt J
Matt J el 14 de Abr. de 2022
Editada: Matt J el 14 de Abr. de 2022
For example;
x=-2:2;
y=-x.^2+2;
[~,i]=max(y);
plot(x,y,x(i),y(i),'o'); legend('Plot','Maximum Point'); axis padded

Categorías

Más información sobre Fit Postprocessing 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