Azzera filtri
Azzera filtri

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

4 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Arthur Roué
Arthur Roué il 29 Lug 2020
Modificato: Arthur Roué il 29 Lug 2020
% Folder to create
myRep = 'C:\...'
% Make new folder
mkdir(myRep)
% Copy source to destination
copyfile(SourceFile, DestinationFile)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by