Rename file when using copyfiile

68 Ansichten (letzte 30 Tage)
Marisabel Gonzalez
Marisabel Gonzalez am 18 Nov. 2018
Kommentiert: madhan ravi am 18 Nov. 2018
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)

Akzeptierte Antwort

madhan ravi
madhan ravi am 18 Nov. 2018
  4 Kommentare
Marisabel Gonzalez
Marisabel Gonzalez am 18 Nov. 2018
I also tried that and still got the error. However, I managed to rename it using copyfile again. Thanks anyway!
madhan ravi
madhan ravi am 18 Nov. 2018
Anytime :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by