pls i need a code that can be used to detect the peak of signal (peak detector)
Ältere Kommentare anzeigen
pls i need a code that can be used to detect the peak of signal (peak detector)
Antworten (4)
Wayne King
am 19 Jun. 2013
0 Stimmen
Do you have the Signal Processing Toolbox, have you looked at findpeaks()?
bala sadiq
am 19 Jun. 2013
0 Stimmen
1 Kommentar
Jan
am 19 Jun. 2013
You'd have to buy this toolbox from MathWorks.
Jan
am 19 Jun. 2013
0 Stimmen
Did you search in the FileEchange already?
You find a very large number of solutions for standard and non-standard problems there.
4 Kommentare
bala sadiq
am 20 Jun. 2013
Bearbeitet: bala sadiq
am 20 Jun. 2013
Jan
am 20 Jun. 2013
If it works, accepting the answer would be a signal for others, that you do not need further suggestion.
bala sadiq
am 20 Jun. 2013
Chinnaiah Golla
am 5 Nov. 2014
In the above code you've used, 'locs' will contain the locations next to the detected peaks.
Have you observed it??
So, if you want to locate the peaks, try the below one...
stem(locs-1,peaks,'are'); % To display in a discrete manner
plot(locs-1,peaks,'are'); % To display in an analog manner
Image Analyst
am 20 Jun. 2013
Here's one that doesn't need any toolbox. Go to the web site indicated:
% Eli Billauer, 3.4.05 (Explicitly not copyrighted).
% http://billauer.co.il/peakdet.html
% This function is released to the public domain; Any use is allowed.
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!