How can I get out the row numbers in where there are numbers except for zeroes?

1 view (last 30 days)
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?

Accepted Answer

Jos (10584)
Jos (10584) on 1 Jul 2014
RowNumber = find(ColumnVector)

More Answers (1)

Jon
Jon on 1 Jul 2014
Thanks a lot!

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!