help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Excluding elements of a matrix


From: Miroslaw Kwasniak
Subject: Re: Excluding elements of a matrix
Date: Tue, 19 Dec 2006 20:53:56 +0100
User-agent: Mutt/1.5.9i

On Tue, Dec 19, 2006 at 06:08:27PM +0100, Joseph Wakeling wrote:
> Bill Denney wrote:
> > You can do something like
> > 
> > a = 1:10;
> > b = a([1:5 7:10])
> 
> Sure; this is selectively _including_ elements of a vector/matrix (in
> this case, elements 1-5 and 7-10).  I was wondering if there's a
> comparably simple notation for _excluding_ elements.

setdiff (1:10,[5 7])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]