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 日

0 投票

a=rand(3,4,5);
[min_v,idx]=min(a(:))
[ii,jj,kk]=ind2sub(size(a),idx)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Data Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by