MATLAB: Moving a folder

moving a folder

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')

Best Answer

movefile(DataFolder,['../' DataFolder])