[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'end' statement
From: |
Daniel Heiserer |
Subject: |
Re: 'end' statement |
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:address@hidden