How to extract certain rows of a matrix?

Hello all,
I have a matrix having large dimension (165475 X 2). Some of its rows have a coordinate of (0,0). I would like to extract those rows. In other words, I would like each row of my matrix be treated as a vector and I am interested in the index of those rows. Thanks.

 Accepted Answer

Mnr, you could use
rows = find(all(data==0,2))

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Tags

No tags entered yet.

Asked:

Mnr
on 26 Mar 2014

Commented:

Mnr
on 26 Mar 2014

Community Treasure Hunt

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

Start Hunting!