find a minimum in a 3d matrix

조회 수: 38 (최근 30일)
noa
noa 2013년 6월 19일
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

채택된 답변

Andrei Bobrov
Andrei Bobrov 2013년 6월 19일
[v,loc] = min(P(:));
[ii,jj,k] = ind2sub(size(P),loc);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sensors and Transducers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by