Reputation: 19
I have 3 matrices that I have saved as a Matlab .mat
file. I am trying to get a script in R the read them. Now that they are saved, I am using the R.matlab
package to access the readMat()
function to read the files. My .mat
file is in downloads, as I can see where it saved.
I am using Matlab 2019 (v9.6). Most of the advice I have seen has recommended to use v5 or v6 file versions which I have converted my Matlab files to so it can work with the R package. The same error occurs unfortunately.
This is one of the matrices and my code that I have attemped:
library(R.matlab)
p_matrix <- readMat(p_matrix.mat)
str(p_matrix)
This is the error feedback I keep receiving:
error in readMat(p_matrix.mat) : object 'p_matrix.mat' not found
I do not know why the consistent error seems to be "object not found".
Upvotes: 0
Views: 868