MATLAB Answers


how to load my program in m file in gui so that it generates my output.

Asked by suganya
on 5 Feb 2013

i need to create a gui so that i need a click box and so an image 'll get loaded and the output of manipulating this image is also showed



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 5 Feb 2013
 Accepted answer

YourImage = imread(TheInputFileName);
fignum = figure();
ax1 = subplot(fignum, 121);
image(ax1, YourImage);
ManipulatedImage = your_manipulation_function( YourImage );
ax2 = subplot(fignum, 122);
image(ax2, ManipulatedImage);

  1 Comment

thank u and in my gui where should i type this..

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!