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

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

suganya on 5 Feb 2013

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

Walter Roberson

Contact us