Skip to content

Commit 5477f12

Browse files
committed
handle all numeric type cases for matlab -> numpy arrays
1 parent 4f04b9b commit 5477f12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

code/matlab_py/mat2py.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
int64(x_mat.Day) , int64(x_mat.Hour) , ...
6666
int64(x_mat.Minute), int64(x_mat.Second), ...
6767
micro_sec, tzinfo);
68-
case {'double', 'single'}
68+
case {'double', 'single', ...
69+
'uint8', 'uint16', 'uint32', 'uint64', ...
70+
'int8', 'int16', 'int32', 'int64'}
6971
if issparse(x_mat)
7072
if ndims(x_mat) ~= 2
7173
fprintf('mat2py: can only convert 2D sparse matrices\n')

0 commit comments

Comments
 (0)