For 1/5 of the MDF files I am trying to import into MATLAB, the mdf and read functions are working as they should. But for the other 4/5 of the mdf files, I get the following error:
"Functionality is not implemented for the MDF file."
fileName = 'MDFData.mdf';
mdfObj = mdf(fileName);
mdfData = read(mdfObj);
This error is thrown when "read" is called, after "mdf" successfully produces a normal-looking mdfObj.
The 4/5 of files that do not work and the 1/5 of files that do work come from the same device with the same configuration. And I have verified that the 4/5 of files that do not work do have good data (I have converted them to .mat files from within CANape, and opened the resulting .mat files in MATLAB to look at the data directly).
Does anyone know what could be causing this error and how to fix it?
Thanks in advance!