Export R list into Matlab cell-array

You can post your problem related to MATLAB Projects here. We will try our best to help you out.
Armistead
Posts:12
Joined:Sat Feb 18, 2017 5:57 am
Export R list into Matlab cell-array

Post by Armistead » Mon Mar 06, 2017 12:12 pm

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

Post Reply