help-octave
[Top][All Lists]
Advanced

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

Re: end indexing


From: Brian Crounse
Subject: Re: end indexing
Date: Wed, 31 Oct 2001 17:13:03 -0500

Laurent,

I would use either

        a(2:length(a))

or

        a(2:size(a,2))

Cheers,

Brian

10/31/2001 5:11:53 PM, Laurent Jacques <address@hidden> wrote:

>Hello,
>
>Is there a way in octave to type something like
>
>octave:20> a=[2 3 4 5];
>octave:21> a(2:end)
>ans =
>
>   3  4  5
>
>where the "end" term refers to the last element of a ?
>
>I didn't see any reference to that in the doc but perhaps I have not search 
>in the good paper.
>
>Thank you,
>L. Jacques.
>
>
>
>-------------------------------------------------------------
>Octave is freely available under the terms of the GNU GPL.
>
>Octave's home on the web:  http://www.octave.org
>How to fund new projects:  http://www.octave.org/funding.html
>Subscription information:  http://www.octave.org/archive.html
>-------------------------------------------------------------
>
>





-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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