Curve variation and point detection
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Louise
am 19 Nov. 2020
Beantwortet: Rohit Pappu
am 24 Nov. 2020
Hi all,
You could find enclosed a vibration signal (vibration_illustration.pdf).
My goal is to detect (automatically if possible) the first and second impact.
I also attach the signal (.mat)
Do you have any ideas of doing that ?
Thanks in advance for your help,
Louise
0 Kommentare
Akzeptierte Antwort
Rohit Pappu
am 24 Nov. 2020
%% Location of first peak
[pk1,loc1] = findpeaks(Signal, 'MinPeakHeight',0.15)
%% Location of second peak
subSignal = Signal(1,500:end);
[pk22,loc2] = findpeaks(subSignal, 'MinPeakHeight',0.06)
%% The point preceding the peak may not be the point of deflection
desiredlocs = [loc1-3 loc2+500-6];
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Measurements and Feature Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!