필터 지우기
필터 지우기

How to detect a peak from a graph

조회 수: 6 (최근 30일)
Ede gerlderlands
Ede gerlderlands 2013년 4월 3일
답변: Chinnaiah Golla 2014년 11월 5일
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 ?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 4월 3일
Use findpeaks function
  댓글 수: 2
Ede gerlderlands
Ede gerlderlands 2013년 4월 3일
I did use that and it also includes the local maximums which are not my needs.
Image Analyst
Image Analyst 2013년 4월 4일
편집: Image Analyst 2013년 4월 4일
But you accepted this answer?

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Image Analyst
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
Ede gerlderlands 2013년 4월 4일
Ok thank you I have already done it with your above answer
Image Analyst
Image Analyst 2013년 4월 4일
You're welcome. Glad I could help.

댓글을 달려면 로그인하십시오.


pramod kumar
pramod kumar 2013년 4월 4일
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
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
Chinnaiah Golla 2014년 11월 5일
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);

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by