how do i load a .mat file into matlab from my downloads folder after seeing if it exists or not, thanks

조회 수: 4 (최근 30일)
?

채택된 답변

Walter Roberson
Walter Roberson 2013년 2월 23일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by