Closed harry-commin-enclustra closed 1 year ago
Currently, py2mat does not support py.numpy.ndarray with dtype.name == "bool".
py.numpy.ndarray
dtype.name == "bool"
For example:
>> py2mat(py.numpy.array([false, true])) py2mat: bool not recognized
It seems that this could be fixed by adding a case for bool:
case
case 'py.numpy.ndarray' switch string(x_py.dtype.name) case "bool" x_mat = logical(x_py);
It then appears to work as expected:
>> py2mat(py.numpy.array([false, true])) ans = 1×2 logical array 0 1
Currently, py2mat does not support
py.numpy.ndarray
withdtype.name == "bool"
.For example:
It seems that this could be fixed by adding a
case
for bool:It then appears to work as expected: