peak of a graph

3 visualizzazioni (ultimi 30 giorni)
Vishnu M S
Vishnu M S il 22 Gen 2013
I have a graph. How can I find the peak value and location of peak point without using for loop?

Risposte (2)

Image Analyst
Image Analyst il 23 Gen 2013
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);

Thorsten
Thorsten il 22 Gen 2013
help findpeaks

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by