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()?

 Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 12 Fév 2012

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by