Code covered by the BSD License  

Highlights from
fig2img

5.0

5.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 1.89 KB File ID: #26898

fig2img

by

 

09 Mar 2010 (Updated )

Saves the current figure with user specified resolution as an image file or pdf file.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
07 Jan 2013 John Ramshur

Sorry for any confusion. Simply click on you figure then run the fig2img function from the command line. Below are some example usages.

Example 1: Use "fig2img" to save figure to image file using 300dpi.

Example 2: Use "fig2img(600,1)" to save figure at 600 dpi using the current figure size/dimensions.

07 Jan 2013 psi4ozzz  
12 Apr 2012 Joachim  
08 Apr 2012 Kamuran

I could not understand how to use this code which would be really helpful for me :)

Updates
09 Apr 2012

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.

11 Apr 2012

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.

08 Jan 2013

Updated comments.

Contact us