From help-octave-request at bevo dot che dot wisc dot edu Thu Dec 18 14:57:35 2003 Subject: Re: "end" for row vectors From: Gerald Ebberink To: Ricardo Cervera CC: help-octave at bevo dot che dot wisc dot edu Date: Thu, 18 Dec 2003 21:57:24 +0100 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Try something like v(size(v)) (should also work in matlab) Ricardo Cervera wrote: | Hello. | | I have some .m files I ran using matlab. The problem is that | they use | | |>v(end) | | | in order to get the last element of a row-vector, and that doesn't | seem to work on octave (version 2.1.35, debian package). Is there | a similar syntax in octave to do so? | | Thanks. | | | | | ------------------------------------------------------------- | 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 | ------------------------------------------------------------- | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/4hSwbSbfYz8yWIMRAqhUAJ9eaoKD+TMwTKrv0EnVupnfi816rgCg6z5k aU17Vdy8FF5mTIhRl1ld30k= =3E7C -----END PGP SIGNATURE----- ------------------------------------------------------------- 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 -------------------------------------------------------------