フィルターのクリア

the dimension of matrix minimum

2 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by