How to convert .mdf files into .mat files ?

Hi ,
I dont have "Powertrain_Blockset" therefore cant use mdf fucntion for the conversion.
But I have CANPe tool. How can I convert /mdf files in matlab with the help of CANape tool ?

3 Comments

I don't know what you can use to do that. I do know that there are different MDF formats that may not all work with certain tools, so it would depend what your files are. There is at least one tool on the FEX, but I don't know if it has dependencies in the PB.
Dunno if that's any help. I imagine you've probably ran across that already.
hi @DGM,
I tried that, couldn't work well. I am just looking for raw script or fuction which can do this job.
Regards
Do not use that very poorly concieved and outdated MDF importer. It was updated and corrected here:

Sign in to comment.

 Accepted Answer

CANape can export
That particular page is talking about export to CSV, but notice in the images that it has MATLAB export too.

More Answers (1)

Please note that there are also functions to read MDF files in Vehicle Network Toolbox. Once you read the mdf file, you can export the data into a .mat file format.

Products

Release

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!