Rename file when using copyfiile

69 visualizaciones (últimos 30 días)
Marisabel Gonzalez
Marisabel Gonzalez el 18 de Nov. de 2018
Comentada: madhan ravi el 18 de Nov. de 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)

Respuesta aceptada

madhan ravi
madhan ravi el 18 de Nov. de 2018
  4 comentarios
Marisabel Gonzalez
Marisabel Gonzalez el 18 de Nov. de 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 el 18 de Nov. de 2018
Anytime :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by