From: Li on 25 Mar 2010 17:09 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)),:)
First
|
Prev
|
Pages: 1 2 Prev: Remove a row if the vector in that row is 0 Next: Trying to use matlab engine from VC++ |