Finding minimums and maximums of repetitive numbers in a matrix

조회 수: 2 (최근 30일)
Vahid Esmaeili
Vahid Esmaeili 2020년 7월 16일
댓글: Vahid Esmaeili 2020년 7월 16일
Hello,
Would you please assist me to find minimums and maximums of repetitive numbers in the attached matrix (EXCEL file). Actually, corresponding values of red ovals and green and blue arrows are different events recorded as biomechanical data during human gait. I am a beginner and need explanation to understand how to calculate the corresponding values. Thank you very much.

채택된 답변

David Hill
David Hill 2020년 7월 16일
Might need to filter slightly to smooth data to obtain consistent results.
redA=islocalmax(a)&a>.1;
greenA=islocalmin(diff([a(1);a]))&a<.03;
blueA=islocalmin(a)&a<.03
  댓글 수: 3
David Hill
David Hill 2020년 7월 16일
Your filter could be as simple as:
a=movmean(a,4);
Vahid Esmaeili
Vahid Esmaeili 2020년 7월 16일
Thank you very much for your favor.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by