lib/matlab/driver/native/conversions.rb in matlab-ruby-2.0.1 vs lib/matlab/driver/native/conversions.rb in matlab-ruby-2.0.2
- old
+ new
@@ -229,10 +229,10 @@
Matlab::CellMatrix.from_matlab(self)
when mxIsChar(self)
mxArrayToString(self)
when mxIsLogical(self)
mxIsLogicalScalarTrue(self)
- when (mxGetM(self) > 1 || mxGetN(self) > 1)
+ when (mxGetM(self) > 1 || mxGetN(self) > 1) || (mxGetM(self) == 0 && mxGetN(self) == 0)
Matlab::Matrix.from_matlab(self)
when mxIsDouble(self)
mxGetScalar(self)
when mxIsEmpty(self)
nil
\ No newline at end of file