dirfullname = 'C:\Documents and Settings\';
fileFolder = fullfile(dirfullname);
dirOutput = dir(fullfile(fileFolder));
fileNames = {dirOutput.name}'
To filter files, use the second argument of fullfile function.
dirOutput = dir(fullfile(fileFolder,'*.jpg'));
No comments:
Post a Comment