Effacer les filtres
Effacer les filtres

How to convert .fig to .jpg ? (issues with 'saveas' function)

2 vues (au cours des 30 derniers jours)
Chathu
Chathu le 6 Mar 2015
Commenté : Chathu le 9 Mar 2015
I tried 'saveas' function but it reduces the quality of the image(meaning, i do not want to have white borders around the image.I want to get the full image after the conversion.
Here is the code i used:
h=openfig('pic-1.fig');
saveas(h,'pic1.jpg')
Can you please tell me how to get around with this?
Really appreciate your feedback.
  2 commentaires
Stephen23
Stephen23 le 6 Mar 2015
Modifié(e) : Stephen23 le 6 Mar 2015
Chathu
Chathu le 9 Mar 2015
Hi Stephen- Thank you so much for directing me to the right direction. It works really well. (plus thank you so much for your wonderful code-Yair Altman) Really appreciate it.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by