Find the min(or max) of the 2nd row of an unknown matrix?
조회 수: 4 (최근 30일)
이전 댓글 표시
matrix A(m,n)
we need to find min or max of only the 2nd row if we have a 2nd row
댓글 수: 0
채택된 답변
madhan ravi
2018년 12월 15일
편집: madhan ravi
2018년 12월 15일
[value,index]=max(A(2,:))
[Value,Index]=min(A(2,:))
댓글 수: 2
John D'Errico
2018년 12월 15일
+1. The point being to extract the second row. Then use either min or max as you wish.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!