How to copy some files from a folder and then paste them to a another folder using matlab code(script Writting)

4 次查看(过去 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.

回答(1 个)

Arthur Roué
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)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by