How to find local maximums from this graph?

조회 수: 2 (최근 30일)
joynob ahmed
joynob ahmed 2020년 7월 12일
댓글: joynob ahmed 2020년 7월 12일
Hi. I am working with border irregularity. For this,I have found this curve and divided the curve into 8 regions by using this code.
plot(distance)
I=imgaussfilt(distance,20);
figure
plot(I)
n = 8 ;
d=I';
a=length(I);
% check whether data needed to be appended to reshape into n
b = n * ceil(a / n)-a ;
%
d = [d NaN(1,b)] ;
iwant = reshape(d,[],n);
% plot
figure
plot(iwant','b*')
Where iwant' is a matrix of 8 by 497. plot of I and iwant' are given respectively:
Here 1st 1/8 portion of the curve is in x=1 position then second 1/8 in x=2 etc.How can I find out the local maximums from iwant' and count them?
  댓글 수: 2
madhan ravi
madhan ravi 2020년 7월 12일
편집: madhan ravi 2020년 7월 12일
Have you looked at islocalmax() ?
joynob ahmed
joynob ahmed 2020년 7월 12일
islocalmax() ive me this where you can see from the first picture that there is no local maxima in the first 1/8 portion.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by