How to save current figure as a picture such as png or bmp?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi there, I've used the 'print' and 'saveas' function to save my current figure as a picture, but I found the picture I've saved is not the same as I saw on the figure window, especially the text coordinate, all lines seem to crowd together, or the picture saved included the task bar of the Windows system.
here's my code: cd(savepicpath); % saveas(gcf,[matname(1:end-4) '_PR.png
Many thanks for any advice! <<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158585/image.bmp)
>>
']); print(gcf,'-dbmp',sprintf([matname(1:end-4) '_PR.bmp']));
0 commentaires
Réponse acceptée
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Printing and Saving 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!