필터 지우기
필터 지우기

Maximum value and its position

조회 수: 6 (최근 30일)
Guglielmo Giambartolomei
Guglielmo Giambartolomei 2021년 5월 6일
댓글: Guglielmo Giambartolomei 2021년 5월 7일
Hello,
I have an accelerometric signal and I would like to find the maximum value of the column of the acceleration values and also at what time this maximum value happened (first column). How can I do that?
Thank you,
Guglielmo

채택된 답변

Walter Roberson
Walter Roberson 2021년 5월 6일
[maxvalue, maxidx] = max(Data(:,2))
time_of_max = Data(maxidx,1)
  댓글 수: 3
Walter Roberson
Walter Roberson 2021년 5월 7일
[maxvalue, maxidx] = max(Data{:,2})
time_of_max = Data{maxidx,1}
Guglielmo Giambartolomei
Guglielmo Giambartolomei 2021년 5월 7일
I transformed the table in an array and it works!
Thank you Walter!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by