extracting a row from a matrix that has the highest value

조회 수: 2 (최근 30일)
jason
jason 2022년 9월 11일
편집: Torsten 2022년 9월 11일
I want to extract a row that has the highest value in one of the columns for example:
3 4
4 10
7 2
2 5
I would want to extract the row of 7 2
  댓글 수: 1
Torsten
Torsten 2022년 9월 11일
편집: Torsten 2022년 9월 11일
The highest value in one of the columns is 10. So you had to extract [4,10], hadn't you ?
And this question has been answered here, Nathan, eh, Jason:
If you want to do this for the column given, use the answer here:

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

답변 (0개)

카테고리

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

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by