finding the first, second and third maxima in the signal
Ältere Kommentare anzeigen
Can someone please help me with the code for finding the signal peaks in the below figure .
I hae tried using for loops, and also MATLAB function findpeaks() . I am new to MATLAB and I am not sure if I am doing this correctly. Please help me.
5 Kommentare
Azzi Abdelmalek
am 29 Mai 2013
In your image, some peaks are ignored
Ricky
am 29 Mai 2013
Iain
am 29 Mai 2013
What is it about the peaks that tell you to NOT ignore them?
Azzi Abdelmalek
am 29 Mai 2013
And how can we do it by code? You should explain why some peaks are ignored, If there is no explanation it's impossible to do it by program.
Ricky
am 29 Mai 2013
Antworten (1)
Azzi Abdelmalek
am 29 Mai 2013
0 Stimmen
2 Kommentare
Ricky
am 29 Mai 2013
Azzi Abdelmalek
am 29 Mai 2013
[peaks,index]=findpeaks(y)
for k=1:numel(peaks)
ii=index(k);
jj=0;
if abs(y(ii)/y(ii-1))>=3 & abs(y(ii)/y(ii+1))>=3
jj=jj+1
real_peak(jj)=peaks(k)
index_peak(jj)=ii
end
end
Kategorien
Mehr zu Descriptive Statistics 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!