Re: Deleting ALL rows of [1,1,1]
- From: "Gaurav Sharma" <gauravs@xxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 10:01:35 -0400
"Matt Fig" <spamanon@xxxxxxxxx> wrote in message
news:g9a2ce$4me$1@xxxxxxxxxxxxxxxxxxxxx
A(ismember([1,1,1], A, 'rows'),:) = [];
I believe that should be:
A(ismember(A,[1,1,1], 'rows'),:) = [];
Also it is faster to do:
A(all(A'==1)',:)=[];
But the Walter's fp warning still applies.
The ALL function can take a second argument for testing along a specific
dimension, so you can get rid of the two transpose operations also.
A(all(A==1, 2), :) = [];
.
- References:
- Deleting ALL rows of [1,1,1]
- From: Mike
- Re: Deleting ALL rows of [1,1,1]
- From: Walter Roberson
- Re: Deleting ALL rows of [1,1,1]
- From: Matt Fig
- Deleting ALL rows of [1,1,1]
- Prev by Date: unable to return a value from gui
- Next by Date: Re: Export data to CSV and Format of numbers
- Previous by thread: Re: Deleting ALL rows of [1,1,1]
- Next by thread: Multi-Threaded Java in Matlab on Multiple Cores
- Index(es):
Relevant Pages
|