indexing crash with current tip

Jaroslav Hajek highegg at gmail.com
Thu Apr 16 02:36:36 CDT 2009


On Thu, Apr 16, 2009 at 9:00 AM, Søren Hauberg <soren at hauberg.org> wrote:
> tor, 16 04 2009 kl. 08:45 +0200, skrev Jaroslav Hajek:
>> Still, can anyone verify what Matlab does when it sees the magic end
>> within an undefined variable? Is assuming zero dimensions the correct
>> behavior? Maybe we should gripe?
>
> It complains about the variable being missing:
>
>        >> a(1:end) = 1
>        ??? Undefined function or variable 'a'.
>
>        >> b(1:end) = 1:5
>        ??? Undefined function or variable 'b'.
>
>        >> c(1, 1:end) = 1:3
>        ??? Undefined function or variable 'c'.
>
> This is with Matlab 7.6
>
> Søren
>
>

OK, thanks to both you and Kai. So I've pushed another patch:
http://hg.savannah.gnu.org/hgweb/octave/rev/8ab1e6f63cdc
our error message will be a bit more descriptive.

regards

-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



More information about the Bug-octave mailing list