Save variables in a new directory (not current directory)
69 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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!