필터 지우기
필터 지우기

the dimension of matrix minimum

조회 수: 1 (최근 30일)
Farid sjdclkjas
Farid sjdclkjas 2013년 8월 5일
Hi, I know that if we have a matrix "A" we can get the minimum value of this matrix by min(A), but is it possible to get the dimension of this minimum value? for example if we have a 30*90 matrix "A" and assume that the minimum value is A(25,81), how can we get these numbers ==>(25,81)?
thanks,

채택된 답변

Andrei Bobrov
Andrei Bobrov 2013년 8월 5일
편집: Andrei Bobrov 2013년 8월 5일
[ii,ii] = min(A(:));
[i1,j1] = ind2sub(size(A),ii);
  댓글 수: 1
Jan
Jan 2013년 8월 5일
@Farid sjdclkjas: Whenever you have questions concerning a command, reading the documentation is a good idea:
doc min

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by