From: Li on
Got you. Thanks for the clarification.

Walter Roberson <roberson(a)hushmail.com> wrote in message <hogin6$crf$2(a)canopus.cc.umanitoba.ca>...
> Li wrote:
> > Thanks. I know you meant A = A ( find ( A(:,1)==0 ), :) ?
>
> No, that is the opposite of XYZ's. That would find the indices where the first
> column *was* 0, and save only the rows in which that was true. XYZ's method
> finds the indices where the first column is *not* 0 and saves those rows.
>
> >> A = A(find(A(:,1)),:)