Change the name of csv file and save into a folder.
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jake
el 23 de Jun. de 2015
Comentada: Jan
el 4 de Jul. de 2015
Hi MATLAB experts,
How can I change the name of csv file and save the name changed? After that, I'd like to move it to a folder..
For instance, I have csv file here, and want to change the name to 'DATA' from 'Value' as follows:
fileList = Value.csv
And move and save this changed file to a folder ('C:\myfolder\')..
Thanks for any help you can provide in advance!!
Best Regards, Jake
0 comentarios
Respuesta aceptada
Stephen23
el 23 de Jun. de 2015
Editada: Stephen23
el 23 de Jun. de 2015
movefile('oldname.csv','newname.csv')
copyfile('newname.m','D:/work/Projects/')
Please read the documentation carefully for both of those functions. Note that copyfile can also be used to rename a file or folder, and that the filenames can include relative-path or full-path if the file is not located in the current directory.
4 comentarios
Jan
el 4 de Jul. de 2015
@Image Analyst: The answer has not been accepted. I've done this for you, because you tried to do this for Jake.
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!