From: rodrikas on 21 Apr 2010 04:40 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 21 Apr 2010 09:18 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);
|
Pages: 1 Prev: for loop with big array Next: Importing Gmesh .msh file to Matlab |