From: rodrikas on
hi,

I am trying to obtain the position of the values higher than a threshold (in terms of indexes (i,j,k))within a 3D matrix.

In a matrix 2D I use the command "[row,cols]=find..." but I don´t know if this can be done in a 3D matrix.

Any help is appreciated. Thanks in advance

Rodrigo
From: Sean on
rodrikas <carballo.rodrigo(a)gmail.com> wrote in message <1234565711.48094.1271853648099.JavaMail.root(a)gallium.mathforum.org>...
> hi,
>
> I am trying to obtain the position of the values higher than a threshold (in terms of indexes (i,j,k))within a 3D matrix.
>
> In a matrix 2D I use the command "[row,cols]=find..." but I don´t know if this can be done in a 3D matrix.

idx = find...(my_matrix)
[rows cols pags] = ind2sub(size(my_matrix),idx);