I have this code which allows the user to select any folder on the computer and then loads all the .mat files to the directory.
pathname = uigetdir;
allfiles = dir(fullfile(pathname,'*.mat'));
out = load(allfiles(1).name);
for k = 2: numel(allfiles)
out(k) = load(allfiles(k).name);
I want to make changes to it such that, user is able to select some files from the folder and not all of them to be loaded to matlab directory..
Does any one know how can we do it ?