필터 지우기
필터 지우기

how to find column index of max value for each row of a matrix 378x5 size?

조회 수: 4 (최근 30일)
hi
i have a matrix size 378x5, how do i find the index column of the maximum value of each row?
Thanks
  댓글 수: 1
Rik
Rik 2019년 5월 30일
(I'm on mobile so I can't check)
The second output of max can do this. You may need to use a loop.

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

채택된 답변

meghannmarie
meghannmarie 2019년 5월 30일
[~,I] = max(A,[],2)

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by