Matlab Cannot find files or folders matching
Show older comments
Having error at line (Cannot find files or folders matching error). What to do? Thanks. outputFolder = fullfile('Project'); rootFolder = fullfile(outputFolder, 'Brain classification');
5 Comments
Dyuman Joshi
on 18 Nov 2023
outputFolder = fullfile('Project');
rootFolder = fullfile(outputFolder, 'Brain classification');
What exactly is this snippet of code supposed to do?
What are "Project" and "Brain classification"?
Bruno Luong
on 18 Nov 2023
outputFolder = fullfile('Project')
This simply returns the unchanged char array 'Project. What do you expect fullfile doing?
Ahmed Hasan
on 18 Nov 2023
Ahmed Hasan
on 18 Nov 2023
Dyuman Joshi
on 18 Nov 2023
"What are "Project" and "Brain classification"? Files"
Then you need to include their extensions as well.
What is the objective? What are you trying to do?
Answers (1)
Walter Roberson
on 18 Nov 2023
outputFolder = fullfile('Project');
rootFolder = fullfile(outputFolder, 'Brain classification');
if ~isfolder(outputFolder); mkdir(outputFolder); end
if ~isfolder(rootFolder); mkdir(rootFolder); end
Categories
Find more on Neuroimaging in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!