필터 지우기
필터 지우기

I want to find indexes for maximum and minimum

조회 수: 1 (최근 30일)
Young Lee
Young Lee 2018년 10월 20일
댓글: madhan ravi 2018년 10월 21일
I am new to matlab and having difficulty. I want to find indexes for maximum and minimum and put them into sets of array. Here is what I have tried. I have no clue on how to produce data for minimum X and Y indexes. Much appreciated for help!
Ry = HeelArray(:,3);
Ry2= HeelArray(:,6);
plot (Ry)
hold on
plot (Ry2)
findpeaks(Ry2, 'Minpeakheight',500);
[Minima, MinIdx] = findpeaks(Ry2, 'Minpeakheight',500);
  댓글 수: 1
Image Analyst
Image Analyst 2018년 10월 20일
Can you attach HeelArray in a .mat file with the paper clip icon, and attach a PNG screenshot with the green and brown frame icon.

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

채택된 답변

madhan ravi
madhan ravi 2018년 10월 20일
편집: madhan ravi 2018년 10월 20일
 findpeaks(-Ry2); %see carefully I added minus sign in front of Ry2
  댓글 수: 4
Young Lee
Young Lee 2018년 10월 21일
Thanks that worked it out
madhan ravi
madhan ravi 2018년 10월 21일
you’re welcome :)

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

추가 답변 (0개)

카테고리

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