MATLAB: How to get out the row numbers in where there are numbers except for zeroes

find row number

Hi!
I've got a column vector and it contains a lot of zeroes and some other numbers. I'm interested in which rows the numbers are in, so how can I do this?

Best Answer

RowNumber = find(ColumnVector)