Rename file when using copyfiile

69 次查看(过去 30 天)
Hello, I would like to rename a file that I've just succesfully copied. The basic code is the following
filename = 'myfilename.dat'
source = fullfile('mysourcepath',filename)
destiantion = fullfile('mydestinationpath',filename)
copyfile(source,destination)

采纳的回答

madhan ravi
madhan ravi 2018-11-18
  4 个评论
Marisabel Gonzalez
Marisabel Gonzalez 2018-11-18
I also tried that and still got the error. However, I managed to rename it using copyfile again. Thanks anyway!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by