Moving a folder

조회 수: 32 (최근 30일)
Baba
Baba 2011년 11월 9일
I'd like to move a folder one directory down. DataFolder is a variable that contains the actual name of the folder. The problem is, the code that I have below '../Datafolder' creates a folder named DataFolder and not the variable name that is stored in DataFolder
movefile(DataFolder,'../DataFolder')

채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 9일
movefile(DataFolder,['../' DataFolder])
  댓글 수: 1
Baba
Baba 2011년 11월 9일
lifesaver

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by