Moving a folder

14 次查看(过去 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])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by