R.matlab/readMat : Error in readTag(this)
Posted
by
Megan
on Stack Overflow
See other posts from Stack Overflow
or by Megan
Published on 2012-07-03T20:03:13Z
Indexed on
2012/07/06
3:16 UTC
Read the original article
Hit count: 196
r
I am trying to read a matlab file into R using R.matlab but am encountering this error:
require(R.matlab)
r <- readMat("file.mat", verbose=T)
Trying to read MAT v5 file stream...
Error in readTag(this) : Unknown data type. Not in range [1,19]: 18569
In addition: Warning message:
In readMat5Header(this, firstFourBytes = firstFourBytes) :
Unknown MAT version tag: 512. Will assume version 5.
How can this issue be solved or is there an alternative way to load matlab files? I can use hdf5load but have heard this can mess with the data. Thanks!
© Stack Overflow or respective owner