From help-octave-request at bevo dot che dot wisc dot edu Mon Feb 18 06:39:06 2002 Subject: Re: selecting last element of a vector From: "Miquel E. =?iso-8859-1?Q?Caba=F1as?=" To: Martijn Brouwer Cc: Octave Help 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 (Miquel dot Cabanas at uab dot es) ------------------------------------------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 -------------------------------------------------------------