Minimum value of row

I have an matrix of size 128X12. For each row I want to find the minimum value and also the row number and column number where that particular minimum value occurs.

 채택된 답변

Matt Fig
Matt Fig 2012년 10월 13일
편집: Matt Fig 2012년 10월 13일

0 개 추천

A = magic(6); % Given array.
[MN,I] = min(A,[],2) % Minimum of each row, and index
Also, whenever you have a question like this, you should turn to the MATLAB documentation. For example, you know you want to find the minimum, so do this:
docsearch('minimum')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2012년 10월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by