Prev: array manipulation
Next: block processing problem
From: Shar on 24 Jun 2010 13:15 Why is this better than the [] deletion method? Thanks! "Erica B" <ebickford(a)wisc.edu> wrote in message <h220kv$5rd$1(a)fred.mathworks.com>... > "Greg von Winckel" <see(a)signature.com> wrote in message <ef57aa2.3(a)webcrossing.raydaftYaTP>... > > One other possible solution > > > > A=A(setdiff(1:length(A),ind)); > > > > where ind is the vector of elements you want to discard. > > > > HTH, > > > > Greg > > > > gregory-von,winckel&uni-graz,at > > > > alayi wrote: > > > > > > > > > I didn't think it would be so easy to remove items without shifting > > > the indices! Thank you. > > Oh that is clever and EXACTLY what I needed. Thank you!! > > Erica
|
Pages: 1 Prev: array manipulation Next: block processing problem |