indexing crash with current tip

Søren Hauberg soren at hauberg.org
Thu Apr 16 02:00:31 CDT 2009


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



More information about the Bug-octave mailing list