Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I insert my foto in the MATLAB GUI?


migration rejected from Oct 3 '15 at 2:51

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as unclear what you're asking by Journeyman Geek Oct 3 '15 at 2:51

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Maybe this is a dumb question... is "my foto" some kind of app, or did you mean to say "one of my photographs/images"? – gnovice Dec 7 '09 at 22:21

I work for MathWorks and recently made a video about inserting an image into a MATLAB GUI. You can view the video on the MATLAB blog.


This is one of many ways to insert an image in a MATLAB GUI:

function hello_world
fig1=figure(  'Name','Figure with a Background Image','Menu','none', ... NumberTitle','off','Unit','normalized', ... 'Position',[.45 .45 .1 .1]);
load mandrill
image(X);colormap(map); %   <-- Plotting the image in the background...
set(gca,'position',[0 0 1 1]);%   <-- It would be ideal to explicitly specify the axis handle here...
axis off; axis equal

button1=uicontrol(fig1,'Style','pushbutton','Unit','Normalized', ... 'Position',[.2 .1 .6 .4],'String','Close','Callback',{@action_Callback});

function action_Callback(~,~)
    % On an earlier version of MATLAB, type:
    % function action_Callback(a,b)
    % instead, for example...

Can't say much with your description, but you'll want to look at

help imageview