Quantcast
Channel: MATLAB Central Newsreader - tag:"find"
Viewing all articles
Browse latest Browse all 55

Find index zero and nonzero elements in an array

$
0
0
Hello fellows,

I have to find the indexes of zero AND nonzero elements in a matrix. I tried to use the function find() but the coordinates of zero elements does not show up. I also used ind2sub() but it can just be used correctly for linear elements.

Does anyone knows a solution?

Thanks!

Viewing all articles
Browse latest Browse all 55

Trending Articles