Read and write of MAT files together with R-to-MATLAB