why I can't load -mat file using MATLAB?
Ältere Kommentare anzeigen
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 Kommentare
Stephen23
am 8 Dez. 2021
Please upload one of the .mat files by clicking the paperclip button.
Get rid of ADDPATH, it is not required for loading data files.
Jan
am 8 Dez. 2021
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?
Anitta Rose Thomas
am 8 Dez. 2021
Antworten (1)
Anitta Rose Thomas
am 15 Dez. 2021
0 Stimmen
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!