why I can't load -mat file using MATLAB?

Hello all,
I am facing some problem while loading some -mat file that created by MATLAB 2017b.
My code is
clear all
close all
clc
addpath(genpath('C:\Users\Anitta Rose\Desktop'));
load('C:\Users\Anitta Rose\Desktop\PL_Excitation_TCSPC_TrpD_ox_buffer_50µW_no1')
after running It showing ''Error using load.Unable to read MAT-file.Try load -ASCII to read as text. Actually I was able to run this before two weeks. But unfortunately my windows 10 had some problem, then I had to re install windows 10 in my PC. Then I installed MATLAB 2021b and MATLAB 2017 a. Both version have the same loading problem. But I couldn't identify the problem.
Can some one help me?

댓글 수: 3

Stephen23
Stephen23 2021년 12월 8일
Please upload one of the .mat files by clicking the paperclip button.
Get rid of ADDPATH, it is not required for loading data files.
At first you can omit this:
clear all
close all
clc
addpath(genpath('C:\Users\Anitta Rose\Desktop'));
None of these commands is not useful if you want to load a file.
Is the file written in ASCII-format, as the error message suggests? Did you thry it already?
Which kind of problems did you have with the operating system? Maybe the file is damaged?
Hello Stephen,
Thanks for your reply.
This files are created by matlab during some data aquasition. They all are -mat file. I couldn't upload the oroginal data file becuase it is more than 5 MB.
For the operting system, first my office programs didn't work well. One day suddenly it showed prdoduction key is missing. When I tried to activate office softwares manually it denied access etc.. Then I reinstall the operating system.
Actually the file is saved in anothe compurer and I am copy this files to my computer and tried to load it. Then it showed the problem. I also thought about file damage and I again copied the file from source.
Thes same files are accesable from another computer matlab (from my colleague ). But not from mine

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

답변 (1개)

Anitta Rose Thomas
Anitta Rose Thomas 2021년 12월 15일

0 개 추천

Hello All,
Thank you all for your comments.
I have solved my file loading problem, by changing the file name. Some how the 'µ' symbol couldn't identify by Matlab. If I rename the file without 'µ', I can load the matlba file.
But do you have any idea why matlab couldn't identify 'µ' symbol in the file name?
Anitta

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2021년 12월 8일

답변:

2021년 12월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by