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 件のコメント

Nicolas Schmit
Nicolas Schmit 2018 年 3 月 27 日
Did you run startup_DCT_Model.m before opening the Simulink model?
tupac1971ful
tupac1971ful 2018 年 3 月 27 日
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 ?
Nicolas Schmit
Nicolas Schmit 2018 年 3 月 28 日
  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.
tupac1971ful
tupac1971ful 2018 年 3 月 28 日
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.
Nicolas Schmit
Nicolas Schmit 2018 年 3 月 29 日
Try to manually load the mat files by double clicking on the UrbanCycle1.mat~UrbanCycle8.mat files in the Scripts_Data folder.
Naren Doraiswamy
Naren Doraiswamy 2018 年 9 月 25 日
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
Alok Virkar 2018 年 11 月 6 日
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.
demos serghiou
demos serghiou 2022 年 8 月 20 日
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
Joohyun Lee 2023 年 7 月 14 日
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.

サインインしてコメントする。

回答 (1 件)

Faisal Khan
Faisal Khan 2018 年 11 月 22 日

2 投票

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

カテゴリ

ヘルプ センター および File Exchange で Tires and Vehicles についてさらに検索

質問済み:

2018 年 3 月 21 日

コメント済み:

2023 年 7 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by