how do i load a .mat file into matlab from my downloads folder after seeing if it exists or not, thanks
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
?
0 comentarios
Respuesta aceptada
Walter Roberson
el 23 de Feb. de 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
Más respuestas (0)
Ver también
Categorías
Más información sobre Downloads en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!