Copyfile with variable as destination
5 views (last 30 days)
Show older comments
Bradley Robert
on 29 May 2019
Commented: Stephen23
on 29 May 2019
I am trying to copy a folder (A) in a directory, to the same directory with a variable as a name, but Matlab doesn't recognize the variable
Example:
saveName = 1234_fMRI
copyfile = *fMR* saveName
This creates a new folder in the directory called "saveName" where it needs to be a folder called 1234_fMRI
Help. Please.
Brad R.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!