From help-octave-request at bevo dot che dot wisc dot edu Thu Oct 22 10:15:03 1998 Subject: Re: 'end' statement From: Daniel Heiserer To: "John W. Eaton" , help-octave@bevo.che.wisc.edu Date: Thu, 22 Oct 1998 17:14:12 +0200 Hi, the 'end' statement I missed a lot too in octave. Here is my check of the stuff using "matlab Version 5.1.0.421". Another important thing I think is that end cannot defined by the user: ==> see at the end of this mail. > > Can `end' occur in other contexts, or just in colon expressions that > are used as indices? I assume the following are also ok. Can someone > please check? > > x(end:-1:1) > x(end) #---------------------------------- check:---------- >> x=[1,2,3] x = 1 2 3 >> x(end:-1:1) ans = 3 2 1 >> x(end) ans = 3 >> >> end=17 Warning: Unmatched "end". ??? end= | Missing operator, comma, or semi-colon. Bye Daniel ----- -------------------------------------------------------------- Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen Abteilung EK-20 Tel.: 089-382-21187, Fax.: 089-382-42820 mailto:daniel dot heiserer at bmw dot de