How to find index using max function to multi array???
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all, I want to find index of maximum value in my set of experiments. However, my data are composed by 4 dimensions such as A(i,j,k,l). How can I do to find the 4 indices for maximum value in A.
for exemple: B=max(A(:));
So, B=maximum value;
Now I want to find index of this value on my four dimensions.
thanks
0 件のコメント
採用された回答
Azzi Abdelmalek
2014 年 2 月 14 日
編集済み: Azzi Abdelmalek
2014 年 2 月 14 日
A=rand(3,4,2,5);
[ii,jj]=max(A(:));
[a,b,c,d]=ind2sub(size(A),jj)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!