help-octave
[Top][All Lists]
Advanced

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

selecting last element of a vector


From: Martijn Brouwer
Subject: selecting last element of a vector
Date: 18 Feb 2002 10:18:29 +0100

Is there a short notation for the last element of a vector like in
scilab? 
like this:

a=[1,2,3];
a($)
ans = 3

I could not find it in the manual.

Thanks,

Martijn Brouwer







-------------------------------------------------------------
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]