pls i need a code that can be used to detect the peak of signal (peak detector)
Show older comments
pls i need a code that can be used to detect the peak of signal (peak detector)
Answers (4)
Wayne King
on 19 Jun 2013
0 votes
Do you have the Signal Processing Toolbox, have you looked at findpeaks()?
bala sadiq
on 19 Jun 2013
0 votes
1 Comment
Jan
on 19 Jun 2013
You'd have to buy this toolbox from MathWorks.
Jan
on 19 Jun 2013
0 votes
Did you search in the FileEchange already?
You find a very large number of solutions for standard and non-standard problems there.
4 Comments
bala sadiq
on 20 Jun 2013
Edited: bala sadiq
on 20 Jun 2013
Jan
on 20 Jun 2013
If it works, accepting the answer would be a signal for others, that you do not need further suggestion.
bala sadiq
on 20 Jun 2013
Chinnaiah Golla
on 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
on 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.
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!