Why is Movefile creating a folder instead of renaming a file?
Show older comments
The program:
for k = 1:1
Folder = sprintf('/Users/NaomiGaggi/Desktop/GroupAnalysis/sub%d/STRUC/', k);
movefile(fullfile(Folder, '*.nii'),fullfile(Folder, 'T1.nii'));
end
makes a FOLDER T1.nii instead of renaming the file containing the extension .nii to T1.nii.
Does anyone know how to fix this?
Thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Large Files and Big Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!