Suppose:
A = 4 5 1 3 5 1 3 4 5 0 0 0 6 0 0 0 4 0 0 0 4 0 0 0 3 0 0 0
I want to find the indices to the rows that contain 0 and I used:
[r,c]=find(A==0)
However, r returned
345673456734567
Why is this so? Shouldn't it return 3,4,5,6,7 only?
Best Answer