필터 지우기
필터 지우기

.mat file corrupt?

조회 수: 2 (최근 30일)
Wouter
Wouter 2013년 4월 22일
댓글: Rajeev Kumar 2020년 8월 27일
Hello,
But I get the following error:
Error using load
Unknown text on line number 1 of ASCII file
<some path>/MOTNL.MAT
"MATLAB".
I opened this .mat file in notepad and I saw it was created in Matlab 5.0 in 1999. So I believe this is a conversion error? So if this is the case could anyone maybe upconvert it? So I can open it with Matlab 2012a?
  댓글 수: 2
Tobias
Tobias 2013년 4월 22일
편집: Tobias 2013년 4월 22일
>> load('MOTNL.MAT')
Warning: Updating objects saved with previous MATLAB version...
Resave your MAT files to improve loading speed.
> In warning at 26
In updatewarn at 11
In ss.loadobj at 13
Do you want the .mat file I generated? There are a LOT of different variables saved in the workspace
Wouter
Wouter 2013년 4월 22일
If you are willing to do that, yes I would like that.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 22일
Try
load('MOTNL.MAT', '-mat')
Remember, Linux is case-sensitive, so possibly the .MAT is throwing it off.
  댓글 수: 2
Wouter
Wouter 2013년 4월 22일
This worked! Thanks!
Rajeev Kumar
Rajeev Kumar 2020년 8월 27일
Excellent! You saved me tons of re-work!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

per isakson
per isakson 2013년 4월 22일
편집: per isakson 2013년 4월 22일
It works here (R2012a,64bit,Windows7)
>> load('C:\Users\poi\Downloads\MOTNL.MAT')
Warning: Updating objects saved with previous MATLAB version...
Resave your MAT files to improve loading speed.
> In warning at 26
In updatewarn at 11
In ss.loadobj at 13
The data looks ok.
Delete and download the file a second time.
  댓글 수: 1
Wouter
Wouter 2013년 4월 22일
I tried that. Maybe it is because I am using Linux, 32bit. Maybe you could export it and upload it?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Power Converters에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by