ERROR :Unable to read MAT-file. Not a binary MAT-file. Try load -ASCII to read as text.

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

Did you run startup_DCT_Model.m before opening the Simulink model?
Yes of course. I did run it but maybe would that error mean that some files are.corrupted. could I somehow retrieve them and make it work ?
  1. Please tell which version of MATLAB you are using.
  2. Try to re-download the file exchange package files and see if the problem still occurs.
Hello, I'm running Matlab 2017a. I did try to redownload the file package and still getting the same error as shown in the picture.
I also got the error that i was mentioning above when i was trying to run the gear change simulation.
Try to manually load the mat files by double clicking on the UrbanCycle1.mat~UrbanCycle8.mat files in the Scripts_Data folder.
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.
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.
Hi firends,
You can read it with the
dlmread('your .mat file')
command.
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
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.

Sign in to comment.

Answers (1)

use addpath('your folder name') which contains the .mat files and then use load() function to call the mat file

Categories

Asked:

on 21 Mar 2018

Commented:

on 14 Jul 2023

Community Treasure Hunt

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

Start Hunting!