multi-dimensional array, minimum, coordinate

11 Ansichten (letzte 30 Tage)
BARAN Özbakr
BARAN Özbakr am 26 Apr. 2014
Kommentiert: BARAN Özbakr am 26 Apr. 2014
Hello, I have to find minimum element of multi-dimensional array and its coordinate
I have this, error=criteria(k,code,i);
thanks

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by