How to copy some files from a folder and then paste them to a another folder using matlab code(script Writting)
3 次查看(过去 30 天)
显示 更早的评论
I am doing some simulation, it give me output files. In those files, I want to copy some files and paste or move them to a new folder. This code has to creat a new folder every time i run, how should i write a matlab code for this.
0 个评论
回答(1 个)
Arthur Roué
2020-7-29
编辑:Arthur Roué
2020-7-29
% Folder to create
myRep = 'C:\...'
% Make new folder
mkdir(myRep)
% Copy source to destination
copyfile(SourceFile, DestinationFile)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!