octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with ismatrix compatibility testing


From: Rik
Subject: Help with ismatrix compatibility testing
Date: Tue, 27 May 2014 15:19:18 -0700

5/27/14

Octave has had the ismatrix() command since 2002, but Matlab added one in
2010 and it doesn't appear that the two are exactly the same.

Could someone with a recent edition of Matlab (>2010) run the following and
report the results.

It might be easiest to use "diary on", run the commands, and then "diary
off" and upload the file since there are quite a few tests.

Commands to run:

ismatrix ({1,2;3,4})
[x(1:2,1:2).a] = deal (1,1,1,1);
ismatrix (x)
ismatrix ([])
ismatrix (zeros (10, 0))
ismatrix (zeros (0,10))
x = zeros (0,10,0,0,0)
size (x)
ndims (x)
ismatrix (x)
x = zeros (0,10,0,1,0)
ismatrix (x)
isscalar ({1})
isvector ([])
isvector (1)
isvector (zeros (1,0))
isvector (cell (1,3))

Thanks,
Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]