I have folder with multiple mat files that I want to sequentially import into the workspace . I have the following script that produces the error claiming the file does not exists in the folder. One example file attached. Could you please help?
all_files = dir(fullfile(Folder, '*.mat'));
for files_i = 1 : length(all_files)
data = load(fullfile(all_files(files_i).name));
Unable to read file 'XsensData_ID001_T001_mat.mat'. No such file or directory.