Save variables in a new directory (not current directory)
52 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Thomas
2012-10-23
编辑:Thomas
2012-10-23
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 个评论
Walter Roberson
2020-2-10
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!