[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: selecting last element of a vector
From: |
Miquel E. Cabañas |
Subject: |
Re: selecting last element of a vector |
Date: |
Mon, 18 Feb 2002 13:33:29 +0100 |
On 2002.02.18 10:18 Martijn Brouwer wrote:
> Is there a short notation for the last element of a vector
> like in scilab? like this:
>
> a=[1,2,3];
> a($)
> ans = 3
a(length(a))
Miquel
--
Miquel E Cabanas ------------------------------------------------------
SeRMN, Universitat Autonoma de Barcelona (address@hidden)
------------------------------------------o-oo--ooo---ooo--oo-o--------
-------------------------------------------------------------
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
-------------------------------------------------------------