MATLAB Answers

Niraj Rajput

how to get processed image at another location than MATLAB figure window

Asked by Niraj Rajput
on 2 Feb 2013

I want to store a processed image at another location(hard drive)rather than displaying on MATLAB figure window


2 Answers

Answer by Daniell Algar
on 2 Feb 2013

doc imrwrite


Answer by Image Analyst
on 2 Feb 2013

Use fullfile() to create your fullfilename:

fullFileName = fullfile(yourDesiredFolder, yourBaseImageFileName);

Then use imwrite() to write it out:

imwrite(yourImageArray, fullFileName);


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!