In matlab it is possible to write matlab objects, or even the entire workspace, to a file using the matlab save() call. I would like to intercept the bytestream and postproc
I am also interested on this problem. I found some things, but nothing works:
Look at MAT files specification, maybe we can reproduce matlab serialization with a Mex file:
I found something very interesting: run in Matlab console this command
edit([matlabroot '/extern/examples/eng_mat/matcreat.c']);
or this
edit([matlabroot '/extern/examples/eng_mat/matcreat.cpp']);
This is the documentation, how to compile it: http://www.mathworks.com/help/techdoc/matlab_external/f14500.html
In my opinion it should be feasible to use STDOUT in pmat = matOpen(file, "w");
command.