M=rand(2,2,3)[minM idx] = min(M(:));[n m t] = ind2sub(size(M),idx)minMM(n,m,t)
I know this will give the minimum of the M matrix.
However, I want minimum value only for each M(:,:,i) part.
Is there anyway to do that?
Thanks in advance!
matrix
M=rand(2,2,3)[minM idx] = min(M(:));[n m t] = ind2sub(size(M),idx)minMM(n,m,t)
Best Answer