peak of a graph

I have a graph. How can I find the peak value and location of peak point without using for loop?

Respuestas (2)

Image Analyst
Image Analyst el 23 de En. de 2013

1 voto

Assuming you have the actual data values that were plotted and aren't just stuck trying to digitize some printed figure out of a published article, try this:
[peakvalue, peakIndex] = max(yourData);

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de En. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by