help-octave
[Top][All Lists]
Advanced

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

Re: uniq like function?


From: Evan
Subject: Re: uniq like function?
Date: Sun, 18 Apr 2010 00:25:08 +0800

On Sun, Apr 18, 2010 at 12:12 AM, Judd Storrs <address@hidden> wrote:
> On Sat, Apr 17, 2010 at 2:37 AM, Evan <address@hidden> wrote:
>> I remembered that matlab seems
>> support omitting the first or the last element inside indexing
>> expressions when I used it many years ago, for example, a(:5), a(2:).
>> these are not supported in octave.
>
> Is this a new feature of Matlab or an old feature that has been
> removed? In Matlab R2007b:
>
>>> a = 1:10 ;
>>> a(1:)
> ??? a(1:)
>        |
> Error: Unbalanced or unexpected parenthesis or bracket.
>
>>> a(:1)
> ??? a(:1)
>       |
> Error: Unexpected MATLAB expression.
>

It would be a removed old feature if it is not support in current
version of matlab. I haven't used it for a long time since I switch to
octave.



reply via email to

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