how to find the peaks between the local maxima and local minima

3 vues (au cours des 30 derniers jours)
abdullah felfel
abdullah felfel le 1 Juil 2022
Commenté : abdullah felfel le 2 Juil 2022
hi, can someone help figure out how to find the peaks that are placed in between the peaks and valleys?
here is the code i used to find the maxima and minima using the first derivative of my pzpg singal
[pks , locs] = findpeaks(ndy,'MinPeakProminence',0.4);
[npks , nlocs] = findpeaks(-ndy,'MinPeakProminence',0.4);
figure(14)
plot(T(locs), pks,'x')
hold on;
plot(T(nlocs), -npks,'o')
shg
hold on;
plot(T ,ndy);title ('local maxima, notch and minima');xlabel('time');ylabel('amplitude')
what im trying to do next is to find the peaks between the maxima (X) and the minima (O)

Réponse acceptée

Image Analyst
Image Analyst le 1 Juil 2022
Try getting rid of minpeakprominence so that you find all peaks.
  5 commentaires
abdullah felfel
abdullah felfel le 2 Juil 2022
thank you my good sir this is what i need

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by