help-octave
[Top][All Lists]
Advanced

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

How to leave out selected elements from a vector?


From: Primoz PETERLIN
Subject: How to leave out selected elements from a vector?
Date: Thu, 17 Jul 2008 11:50:38 +0200

Hello,

Even after a couple of months of using Octave, I still consider myself
a newbie. :)

Here is my question. In Mathematica, there exists a function called
Drop, which I often use to manipulate lists, e.g., Drop[ list, {m, n}
] returns the argument list with the elements m through n omitted from
the list (the resultant list is shorter for (n - m + 1) elements).

Does anything similar already exist in Octave? I know I can program it
myself, but I wouldn't want to reinvent the wheel. :)

TIA, Primoz


reply via email to

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