ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text.
Show older comments
Hello, i've downloaded the following https://www.mathworks.com/matlabcentral/fileexchange/32246-dual-clutch-transmission-model-in-simulink for my project.
when i try to run the simulation i get the following error : Error using load Unable to read MAT-file C:\Users\....\UrbanCycle1.mat. Not a binary MAT-file. Try load -ASCII to read as text.
The matfile "UrbanCycle1.mat" is one of the data scripts to run the simulation properly. Could you help me with this?
10 Comments
Nicolas Schmit
on 27 Mar 2018
Did you run startup_DCT_Model.m before opening the Simulink model?
tupac1971ful
on 27 Mar 2018
Nicolas Schmit
on 28 Mar 2018
- Please tell which version of MATLAB you are using.
- Try to re-download the file exchange package files and see if the problem still occurs.
tupac1971ful
on 28 Mar 2018
Nicolas Schmit
on 29 Mar 2018
Try to manually load the mat files by double clicking on the UrbanCycle1.mat~UrbanCycle8.mat files in the Scripts_Data folder.
Naren Doraiswamy
on 25 Sep 2018
I am facing the same problem too. I have saved my data from the scipy.io's savemat function and when i try to open it in matlab, i am confronted with this particular error. Any suggestions regarding solving the issue?
Thank you.
Alok Virkar
on 6 Nov 2018
Hi were you able to resolve this issue? Im having a similar one interfacing python and matlab. When I download my mat file from python it has less memory than when I download it directly.
ali foroutannia
on 16 May 2019
Hi firends,
You can read it with the
dlmread('your .mat file')
command.
demos serghiou
on 20 Aug 2022
Hi Any solution to this problem? None of the above work. I am trying to open a .mat figure that used to open perfectly fine before reactivating matlab licence file
Joohyun Lee
on 14 Jul 2023
Sometimes, if you are using a NAS or cloud server to load your file, it may prompt out that error when the computer is not connected to it (e.g., re-verify credentials, log-in, etc.) I signed out of my cloud and logged back in, and it worked.
Answers (1)
Faisal Khan
on 22 Nov 2018
2 votes
use addpath('your folder name') which contains the .mat files and then use load() function to call the mat file
Categories
Find more on Clutches in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!