How to detect a peak from a graph
显示 更早的评论
A part of my work need me to peak the peak from a graph of cyclic nature with time vs velocity. I tried to use treshold and and others options. to locate the maximum peak but could also include the local maximums . Is there anyway of picking the maximum value? such as sliding window ?
采纳的回答
更多回答(3 个)
Image Analyst
2013-4-3
For local peaks I'd use findpeaks() in the Signal Processing Toolbox, or imregionalmax() in the Image Processing Toolbox. For a global peak, simply use the max function
[maxValue, indexOfMax] = max(yourSignal);
4 个评论
Ede gerlderlands
2013-4-3
Image Analyst
2013-4-4
Well now I have no idea if you want all the local peaks or not. How many peaks do you want? One or multiple? I think it's time for you to post an image of your data with arrows pointing to the peak(s) on the signal that you want to detect. Try http://snag.gy or http://tinypic.com.
Ede gerlderlands
2013-4-4
Image Analyst
2013-4-4
You're welcome. Glad I could help.
pramod kumar
2013-4-4
0 个投票
even i am also working on to find the peak of the signal i have tried inbuilt function [peak_value, peak_location] = findpeaks(Tx1Rx_1100mm_3plates);
1 个评论
Image Analyst
2013-4-4
After reading this: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer, post your own question, along with screenshot of your signal, and code (including data) that we can copy and paste to reproduce your situation.
Chinnaiah Golla
2014-11-5
0 个投票
If you simply want to obtain the maximum(Peak) value of signal by excluding the local maximas, you can use the max function.
max_val=max(signal);
类别
在 帮助中心 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!