MATLAB Answers

Lidank Abiel

some trouble about background in gui

Asked by Lidank Abiel
on 6 Jun 2013

I have problem to make background in gui. I'm using this code. It work to display my image as background, but when i browse another image, my background change become the image that i browse.

here my code:

 function tes2_OpeningFcn(hObject, eventdata, handles, varargin)
 handles.output = hObject;
 guidata(hObject, handles);
 ha = axes('units','normalized','position',[0 0 1 1]);
 [back map] = imread('Marilyn-Monroe-22388.jpg');
 colormap (map)
 function Open_Callback(hObject, eventdata, handles)
 global citra
 [filename, foldername] = uigetfile('*.jpg'); 
 if filename ~= 0
 FileName = fullfile(foldername, filename);
 citra = imread(FileName);
 imshow(citra, []);  
thanks before


Walter Roberson
on 6 Jun 2013

Please read the guide to tags and retag this question; see

Walter Roberson
on 6 Jun 2013

You have not indicated the difference between how the program behaves and how you want it to behave. You mentioned how it does behave, but not what you want it to do differently.

Lidank Abiel
on 18 Jun 2013

I'm sorry sir


0 Answers

Discover MakerZone

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

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!