필터 지우기
필터 지우기

Problem in loading ".mat" file

조회 수: 3 (최근 30일)
Q L
Q L 2011년 10월 12일
답변: Sahasra Ranjan 2020년 5월 12일
Hi, I'm encountered with this problem when trying to load a .mat file:
*??? Error using ==> load Unable to read MAT-file C:\sub1 Prmtrs.mat: not a binary MAT-file. Try LOAD -ASCII to read as text.*
It's very strange that this program did work in the computer I'm now using yesterday. I can also load data using the same .mat files and the same program in another computer earlier today.
I'm very confused. Could anybody help figure out why? Any help will be appreciated. Thanks.
Qing Liu

채택된 답변

Joshua
Joshua 2011년 10월 28일
I have been getting the same error. I typically get it after opening and closing several large mat files. If I exit Matlab and restart, I can continue to open/close more mat files but eventually I get the error again. Mathworks really needs to do something about this.

추가 답변 (2개)

Q L
Q L 2011년 10월 31일
I've solved the problem by re-copying the mat.files from another computer.....Anyway, thanks a lot!

Sahasra Ranjan
Sahasra Ranjan 2020년 5월 12일
Change the file extension from .mat to .ascii
This worked for me.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by