How to make a particular folder open in matlab for saving images?
Afficher commentaires plus anciens
I am using regression learning for developing machine learning models. My intention is to save the figure (like residual plot) to a particular working folder. But whenever I click on "Export Plot to a Figure" option, a home directory opens. Then it takes well over 10 seconds for me to navigate to the folder in which I would require to save. This process needs to get repeated everytime, I am trying to save a figure. How to make a working folder open directly for saving?
3 commentaires
Akira Agata
le 17 Juin 2019
The following is a simple example.
x = [2 4 7 2 4 5 2 5 1 4];
h = figure;
plot(x)
saveas(h,'C:\someFolder\fig1.png');
Praveen Kumar M
le 17 Juin 2019
Stephen23
le 17 Juin 2019
"This would work when we are coding in commandline."
And also when writing any code.
"Suppose i am using GUI interface for classification and regression learner app, in that case this would not be possible."
I don't see any reason why not, and you have not explained why you think there is some restriction on its usage (hint: there isn't).
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!