Save variables in a new directory (not current directory)
57 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Antonio
el 23 de Oct. de 2012
Hi. I'd save variables from the workspace into a file putting it into a new directory (not the curr dir). I use the command 'save' but it doesn't it! Thanking you for your attention, I'm looking forward for your answers.
0 comentarios
Respuesta aceptada
Thomas
el 23 de Oct. de 2012
Editada: Thomas
el 23 de Oct. de 2012
you have to use save with the entire path..
save('C:\My folder\filename','varname')
You could also look at the FULLFILE comamnd
doc fullfile
3 comentarios
Walter Roberson
el 10 de Feb. de 2020
We really recommend using fullfile instead of constructing folder names using strcat. It makes it easier to get the right path and makes the code more portable.
Más respuestas (0)
Ver también
Categorías
Más información sobre File Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!