필터 지우기
필터 지우기

Point at which max occurs

조회 수: 1 (최근 30일)
aswathy
aswathy 2012년 11월 20일
댓글: James Cassata 2018년 1월 11일
how to find out the index at which max occurs in a series of data in matlab??
these are my data [1 5 6 7 8 9 10 12 2 7 8 11 5]

채택된 답변

Matt Fig
Matt Fig 2012년 11월 20일
편집: Matt Fig 2012년 11월 20일
It is always a good idea to read the doc for any such question:
doc max
docsearch('maximum value')
The two output call to the MAX function gives you what you need.
[maxval,index] = max([1 5 6 7 8 9 10 12 2 7 8 11 5])

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by