I am using matlab file in which i am able to create the new folder according to the time, but the thing is i want to copy the files from a specific file to this newly made folder according to time.

3 visualizzazioni (ultimi 30 giorni)
dfile=[datestr(now,'mm-dd-yyyy HH.MM.SS'),'folder']; mkdir(dfile);
this is my code for making new folder with time, how to add some files from specific location/folder to this newly made folder. It should be like every time we make new folder those files should be included.
thanks

Risposta accettata

KL
KL il 22 Nov 2017
  3 Commenti
KL
KL il 22 Nov 2017
mkdir makes new folder. You have already used mkdir(dfile).
I suggest to use copy file after that.
copyfile('yourfile.m',dfile)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MATLAB 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