Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
image file

Subject: image file

From: Susan

Date: 12 Sep, 2011 22:15:32

Message: 1 of 4

Hey all,
Is there a way to save the figure output produced in matlab file as image (gif,ping)?

Thanks all,
 Susan

Subject: image file

From: Sadik

Date: 13 Sep, 2011 02:57:13

Message: 2 of 4

help saveas

help print

and the See Also references therein.

Best.

Subject: image file

From: ImageAnalyst

Date: 13 Sep, 2011 06:27:08

Message: 3 of 4

On Sep 13, 12:15 am, "Susan " <laura_Ma...@hotmail.com> wrote:
> Hey all,
> Is there a way to save the figure output produced in matlab file as image (gif,ping)?
>
> Thanks all,
>  Susan

--------------------------------------------------------------------------------------------
Use export_fig, as recommended by the FAQ:
http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.
Most people have good success with that.

Subject: image file

From: Abbas Cheddad

Date: 13 Sep, 2011 11:19:11

Message: 4 of 4

Hi Susan,

Try this:

%%%%%%%%%%%%%%%%%%%%%%%%%%
imshow(Image)
Frame=getframe();
Im=Frame.cdata;
imwrite(im,'Name_it.png');

% Note 1: remember the grabbed image (Im) is an RGB even when your original
% displayed image (Image) is grayscale!

% Note 2: the grabbed image size depends on the display option you choose

% Note 3: the image (Im) is grabbed as it is within the display gray box.

%%%%%%%%%%%%%%%%%%%%%%%%%%%


"Susan" wrote in message <j4m0a4$5ni$1@newscl01ah.mathworks.com>...
> Hey all,
> Is there a way to save the figure output produced in matlab file as image (gif,ping)?
>
> Thanks all,
> Susan

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us