Re: [R] importing multidimensional matrix from MATLAB

2010-06-10 Thread Phil Spector
Gopi - Not much to go by, but maybe this will be helpful: In matlab: themat = rand(10,5,3) save themat In R: library(R.matlab) themat = readMat('themat.mat') dim(themat$themat) [1] 10 5 3 (Since .mat file can store more than one object, readMat returns a list with each object as a

[R] importing multidimensional matrix from MATLAB

2010-06-10 Thread Gopikrishna Deshpande
Hi, Suppose I have a matrix of size 256x14x32 in MATLAB. I want to import that into R. I used readMat and then do.call. But the variable is stored as an array as its done in R. However, I want to define a variable W=array(0,c(256,14,32)) in R and read the multidimensional matlab variable into W. I