Filter löschen
Filter löschen

find a minimum in a 3d matrix

39 Ansichten (letzte 30 Tage)
noa
noa am 19 Jun. 2013
hi
i have a 3d matrix P(1000x1000x3
i want to find its' minimum value including location i,j,k
i tried doing this with min(min(min...) but i get very confused
is there an easier way?
thanks

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 19 Jun. 2013
[v,loc] = min(P(:));
[ii,jj,k] = ind2sub(size(P),loc);

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices 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