cat with empty matrix

Phil Fong fongpwf at yahoo.com
Mon Nov 3 18:12:44 CST 2008


cat with an empty matrix behaves differently in Octave 3.0.3 than in Matlab 7.3.
In Octave:
octave:18> cat(2,[],1)
error: octave_base_value::reshape (): wrong type argument `scalar'

In Matlab:
>> cat(2,[],1)
ans =
     1

Obviously, in actual use the empty matrix is usually a variable rather than a literal empty matrix.


      


More information about the Bug-octave mailing list