discrepancy between 'zeros' and 'eye' in octave-3.0.5

Sergei Steshenko sergstesh at yahoo.com
Wed Jul 1 12:59:49 CDT 2009


Hello,

'help zeros' among other things says:

"The arguments are handled the same as the arguments for `eye'."

In practice:

"
octave:39> zeros([0 1 2])
ans = [](0x1x2)
octave:40> eye([0 1 2])
error: eye (A): use eye (size (A)) instead
",

i.e. there is an error message in case of 'eye' and no error message in 
case 'zeros', so I'd say it's not the same way.

Thanks,
  Sergei.


      


More information about the Bug-octave mailing list