필터 지우기
필터 지우기

How to detect a peak at a given location?

조회 수: 1 (최근 30일)
kiruthika r
kiruthika r 2015년 10월 25일
편집: Andrei Bobrov 2015년 10월 25일
I have a plot. I have to detect the peak at a given location. But the peak is not starting from the given point. My location point is 410 in x-axis.

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2015년 10월 25일
편집: Andrei Bobrov 2015년 10월 25일
A = [400,192;...;410,204;...;420,188]; - your array.
[ypeak,ii] = findpeaks(A(:,2));
xpeak = A(ii,1);

카테고리

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