How to find a peak in data?

Hello My name is Anthony, I am a high school student working on a software to analyze solar flare data and autonomously find there peaks. My friend told me that I can take the derivative of each data point and see where it is undefined. Does any one know how to do this i have tried diff()?

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 12 Feb. 2012

0 Stimmen

or
data = randi(179,30,1);% eg your data
d1 = [true;diff(data)>0]
out = data(strfind(d1(:).',[1,0]))

Weitere Antworten (0)

Kategorien

Mehr zu Solar Power finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by