how do i load a .mat file into matlab from my downloads folder after seeing if it exists or not, thanks
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 23 Feb. 2013
matname = 'xyz.mat'; %for example
foldername = '/Users/people/stephen'; %for example
fullmatname = fullfile(foldername, matname);
if exist(fullmatname, 'file')
matfiledata = load(fullmatname);
else
error('.mat file must be stuck in traffic, is not here yet')
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Downloads finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!