Saves the current figure with user specified resolution as an image file or pdf file.
1,8K download
Aggiornato 8 gen 2013

Visualizza la licenza

Easy to use function. Let's you save the CURRENT FIGURE as an image file or pdf file. A pop-up dialog prompts user where to save the image and what image compression to use. Default dpi is 300 (print quality). User can specify any dpi. The user can also specify whether to use the default image size or the current figure size on the screen.

Cita come

John Ramshur (2024). fig2img (, MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2008b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Scopri di più su Printing and Saving in Help Center e MATLAB Answers

Ispirato da: Exportfig

Ispirato: fig2img

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release

Updated comments.

1. Fixed error found in how the function extracts the user selected image compressing setting.
2. Added more comments.
3. Added option to save as PDF.

I previously uploaded the .asm file and not the .m file. I also changed the usage details some. No changes were made to the code.