[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 di
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions |
Date: |
Mon, 26 May 2014 16:11:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
Follow-up Comment #4, bug #42422 (project octave):
We should also verify with a recent version of Matlab what the true behavior
of all these commands are. The documentation now makes isscalar, isrow,
iscolumn, isvector, ismatrix suggest that they are only concerned with the
return value from size(). ismatrix() on Octave, however, also checks that the
array is numeric. Finally, ismatrix is implemented in C++ while the others
are in m-files. This is really a simple function and should probably be made
an m-file.
Some tests for a recent version of Matlab:
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)
isscalar ({1})
isvector ([])
isvector (1)
isvector (zeros (1,0))
isvector (cell (1,3))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42422>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Carnë Draug, 2014/05/25
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Rik, 2014/05/26
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Michael Godfrey, 2014/05/26
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Michael Godfrey, 2014/05/26
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions,
Rik <=
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, John W. Eaton, 2014/05/27
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Rik, 2014/05/27
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Michael Godfrey, 2014/05/27
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Rik, 2014/05/28
- [Octave-bug-tracker] [bug #42422] ismatrix: Matlab is only true for 2 dimensions, Rik, 2014/05/28