Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Instantiation of multiple images in a GUI
Date: Wed, 19 Nov 2008 20:54:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <gg1uda$oom$1@fred.mathworks.com>
References: <gg1j76$88v$1@fred.mathworks.com> <6305c99d-54d2-47be-a77c-4449b57420b6@e6g2000vbe.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227128042 25366 172.30.248.35 (19 Nov 2008 20:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 19 Nov 2008 20:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1268168
Xref: news.mathworks.com comp.soft-sys.matlab:501840


I've found a solution! After creating axes objects in GUIDE, place this code inside each "axes_CreateFcn" callback:

axes(hObject)
imshow('file.extension');
title('')

I am able to instantiate multiple images in the same figure with this technique, which originated from this tutorial by Doug Hull:

http://blogs.mathworks.com/pick/2007/10/16/matlab-basics-setting-a-background-image-for-a-gui/