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.

조회 수: 2 (최근 30일)
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

채택된 답변

KL
KL 2017년 11월 22일
  댓글 수: 3
KL
KL 2017년 11월 22일
mkdir makes new folder. You have already used mkdir(dfile).
I suggest to use copy file after that.
copyfile('yourfile.m',dfile)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by