Find the min(or max) of the 2nd row of an unknown matrix?

조회 수: 4 (최근 30일)
Ammaa AlSada
Ammaa AlSada 2018년 12월 15일
댓글: madhan ravi 2018년 12월 16일
matrix A(m,n)
we need to find min or max of only the 2nd row if we have a 2nd row

채택된 답변

madhan ravi
madhan ravi 2018년 12월 15일
편집: madhan ravi 2018년 12월 15일
[value,index]=max(A(2,:))
[Value,Index]=min(A(2,:))
  댓글 수: 2
John D'Errico
John D'Errico 2018년 12월 15일
+1. The point being to extract the second row. Then use either min or max as you wish.
madhan ravi
madhan ravi 2018년 12월 16일
Thank you John D’Errico ;-)

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

추가 답변 (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