add path in matlab folder
2 ビュー (過去 30 日間)
古いコメントを表示
How to add(save as) path in matlab folder after writing program.The path is getting saved as user path.what do I do..??
0 件のコメント
回答 (2 件)
Brattv
2016 年 4 月 21 日
編集済み: Brattv
2016 年 4 月 21 日
Hi, Try using the "cd" function to change the current folder
if true
% Changing folder to desktop before saving figure(1)
cd('C:\Users\....\Desktop')
saveas(figure(1),'png')
end
1 件のコメント
Guillaume
2016 年 4 月 21 日
No! Avoid using cd at all cost. Much better to specify the full path of the file to save.
If you cd functions that were previously visible to matlab may not be accessible anymore and new ones may be visible.
Guillaume
2016 年 4 月 21 日
saveas(hfig, fullfile('C:\folder\where you want\to save', 'somename.png');
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!