|
From: | Kai Torben Ohlhus |
Subject: | Re: Help with ismatrix compatibility testing |
Date: | Wed, 28 May 2014 00:31:40 +0200 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |