multi-dimensional array, minimum, coordinate

1 vue (au cours des 30 derniers jours)
BARAN Özbakr
BARAN Özbakr le 26 Avr 2014
Commenté : BARAN Özbakr le 26 Avr 2014
Hello, I have to find minimum element of multi-dimensional array and its coordinate
I have this, error=criteria(k,code,i);
thanks

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by