MATLAB Answers

How to read MDF Files into Matlab?

17 ビュー (過去 30 日間)
Keith Knoll
Keith Knoll 2019 年 11 月 11 日
回答済み: Urmila Rajpurohith 2019 年 11 月 14 日
I'm attempting to read MDF (.mf4) files into Matlab workspace. I'm using the following commands:
mdfObj = mdf('datafile.MF4');
data1 = read(mdfObj);
but get the following error:
Functionality is not implemented for the MDF file.
I have the Vehicle Network Toolbox installed which I think should allow for this read command.
Can you please advise?
Thanks,
Keith

  0 件のコメント

サインイン to comment.

採用された回答

Urmila Rajpurohith
Urmila Rajpurohith 2019 年 11 月 14 日
The error you are encountering often occurs when the MDF file is not sorted. By applying a data sort to the file, it becomes readable.
You can use “mdfSort” function to sort the file and make the file readable.
mdfSort ('oldFile.mdf', 'newFile.mdf');
mdfObj = mdf('newFile.mdf');
data = read(mdfObj);

  0 件のコメント

サインイン to comment.

その他の回答 (0 件)

サインイン してこの質問に回答します。

製品


Translated by