multi-dimensional array, minimum, coordinate

16 ビュー (過去 30 日間)
BARAN Özbakr
BARAN Özbakr 2014 年 4 月 26 日
コメント済み: BARAN Özbakr 2014 年 4 月 26 日
Hello, I have to find minimum element of multi-dimensional array and its coordinate
I have this, error=criteria(k,code,i);
thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 26 日
a=rand(3,4,5);
[min_v,idx]=min(a(:))
[ii,jj,kk]=ind2sub(size(a),idx)
  1 件のコメント
BARAN Özbakr
BARAN Özbakr 2014 年 4 月 26 日
thanks, it works too

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by