I am trying to rename a file the same as a variable. The variable obviously will be string, its just so I can make my program even more automated. For example :
x = 'RenameTest'
movefile('Original.txt', '%s.txt', x)
That code doesn't work but is this possible to do?
2 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/305569-renaming-a-file-the-same-as-a-variable#comment_395603
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/305569-renaming-a-file-the-same-as-a-variable#comment_395603
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/305569-renaming-a-file-the-same-as-a-variable#comment_395608
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/305569-renaming-a-file-the-same-as-a-variable#comment_395608
Sign in to comment.