Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

obtaining the maximum values from the series

1 visualizzazione (ultimi 30 giorni)
Ede gerlderlands
Ede gerlderlands il 3 Apr 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I have two series of readings (time, x) and (time, y). Both graphs have cyclic nature which respect to time. With peak and trough in random and different time interval. I want to find the the lag between maximum x and maximum y (each peaks) from the series and plot it against time. Can you help with that?

Risposte (2)

Sean de Wolski
Sean de Wolski il 3 Apr 2013
doc findpeaks
The problem with looking for the derivative to be zero is that this will almost never happen with real data unless you are saturating to some level. Instead, look for where the derivative changes sign()
  2 Commenti
Ede gerlderlands
Ede gerlderlands il 3 Apr 2013
Yes, I have used this function but couldn't left out the local maximums from the series . Is there any way of avoiding them ?
Sean de Wolski
Sean de Wolski il 4 Apr 2013
Use the threshold option. Or find all of the peaks and then pick the best ones from that.

Image Analyst
Image Analyst il 4 Apr 2013
Like I said in your duplicate question, if you want all the local peaks left out, then just use max() -- this will find the one global max.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by