[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Understanding a dot
From: |
Kim Hansen |
Subject: |
Re: Understanding a dot |
Date: |
Tue, 25 Mar 2008 00:16:33 +0100 |
On Mon, Mar 24, 2008 at 10:55 AM, Søren Hauberg <address@hidden> wrote:
>
> What really bugs me is that
> i = 1.length(tmp)
> gives an error (like expected), but
> for i = 1.length(tmp) ...
> doesn't. This is perfectly compatible with Matlab, but it is a really
> weird thing to do IMHO.
This is because for statements do not need a separator between the
range and the first inner statement:
octave:23> for k=1:2 k, end
k = 1
k = 2
--
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437 -- Mobil: 3091 2437