multi-dimensional array, minimum, coordinate

8 visualizzazioni (ultimi 30 giorni)
Hello, I have to find minimum element of multi-dimensional array and its coordinate
I have this, error=criteria(k,code,i);
thanks

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 26 Apr 2014
a=rand(3,4,5);
[min_v,idx]=min(a(:))
[ii,jj,kk]=ind2sub(size(a),idx)

Più risposte (0)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by