Hi,

I have a 3-D matrix containing some non-zero numerical values.I want to find the indices of these non-zero elements.

I know find() can give me row and column, but it doesn't work for a 3-D matrix. Is there another function I can use?

Skip to content
# MATLAB: Find non-zero elements in a 3-D matrix

findindicesmatrixmultidimension

Hi,

I have a 3-D matrix containing some non-zero numerical values.I want to find the indices of these non-zero elements.

I know find() can give me row and column, but it doesn't work for a 3-D matrix. Is there another function I can use?

## Best Answer