setdiff output differs from matlab

Søren Hauberg soren at hauberg.org
Tue Sep 9 14:57:05 CDT 2008


tir, 09 09 2008 kl. 13:07 -0500, skrev Michael Ferris:
> In octave: x = 1:5; y = setdiff(x,x); size(y)
> ans =
> 
>      0     0
> 
> In matlab: x = 1:5; y = setdiff(x,x); size(y)
> ans =
> 
>      1     0

Both produce empty matrices, it's only their size that differs.

Søren



More information about the Bug-octave mailing list