tbeu / matio

MATLAB MAT File I/O Library
https://matio.sourceforge.io
BSD 2-Clause "Simplified" License
330 stars 97 forks source link

How to save matrices by row-first method ? #126

Closed onurcanbektas closed 4 years ago

onurcanbektas commented 4 years ago

Let say I have the matrix

h[4] = {{1,2},{3,4}};

If I tried to save this *.mat file, the saved matrix will be

[1,3;2,4]

in MATLAB. However, I would like to save it in such a way that, in MATLAB the saved matrix will also be

[1,2;3,4]

How can I do that ?

tbeu commented 4 years ago

Have a look at https://sourceforge.net/p/matio/feature-requests/4/.