add path in matlab folder
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
Brattv
le 21 Avr 2016
Modifié(e) : Brattv
le 21 Avr 2016
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 commentaire
Guillaume
le 21 Avr 2016
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
le 21 Avr 2016
saveas(hfig, fullfile('C:\folder\where you want\to save', 'somename.png');
0 commentaires
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!