Path: news.mathworks.com!not-for-mail
From: "Mamata Kukreja" <mamata_kukreja@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Displaying images dynamically in GUI
Date: Mon, 21 Jan 2008 14:37:01 +0000 (UTC)
Organization: SIES
Lines: 20
Message-ID: <fn2amd$i9j$1@fred.mathworks.com>
References: <fn28hl$4jn$1@fred.mathworks.com> <fn29d8$ljd$1@fred.mathworks.com>
Reply-To: "Mamata Kukreja" <mamata_kukreja@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1200926221 18739 172.30.248.38 (21 Jan 2008 14:37:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 21 Jan 2008 14:37:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1253471
Xref: news.mathworks.com comp.soft-sys.matlab:446759


"Ian Clarkson" <ian.clarkson@gesturetek.com> wrote in
message <fn29d8$ljd$1@fred.mathworks.com>...
> "Mamata Kukreja" <mamata_kukreja@yahoo.com> wrote in 
> message <fn28hl$4jn$1@fred.mathworks.com>...
> > Hello,
> > I want to read images from a directory and display them on
> > the GUI. So, depending on the number of images in the
> > directory the GUI will change .. how do i handle this ?
> 
> I'm assuming once you get the list of images in a folder 
> (using dir), you could just use subplot to plot them all in 
> a grid. You'd have a number of images (say 24), then you 
> could just generate the next-highest perfect square n^2 and 
> make an nxn grid of images which you fill up. Just have an 
> update function that clears the figure and does a subplot 
> of all the images.

Hey but my GUI is not fully empty .. i have other controls
also on it .. right hand side of the grid is for displaying
images which are read from a drive ..