Page 1 of 1

Export R list into Matlab cell-array

Posted: Mon Mar 06, 2017 12:12 pm
by Armistead
I have searched everywhere and I'm currently unable to find a solution to my issue.

I have a list created under Rstudio which is made of matrices list(mat1,mat2,...). What i would like to do is export that list to matlab to get a cell-array with each cell containing 1 matrix. Does anyone has any idea how to proceed ? I have used the R.matlab package already but when I import the resulting file in matlab I obtain a "structure" file which seems to be empty. following is my code to export.

W1 is my list.

Code: Select all

library('R.matlab')
writeMat("W1.mat",W1export=W1)
Thanks