From: kartik on
On Jun 18, 9:54 pm, "French Caro " <caro95...(a)nospam.free.fr> wrote:
> kartik <karti...(a)gmail.com> wrote in message
>
> <03df8b9b-3b2f-47a1-a3d8-d7a392280...(a)i36g2000prf.googlegroups.com>...
>
>
>
> > Hi,
> > I'm new to building GUI in MATLAB and need some help.
>
> > Basically, I want to display all the images present in a
> folder one at
> > a time in the GUI based on the slider value selected by
> the user (the
> > range of values in the slider must be the number of image
> files in the
> > folder).
>
> > I also want ot know how to put an option on the menu bar
> to load all
> > the images in a folder. I mean, the menu_file_open tag is
> used to open
> > a file, but to select a folder what should be used.
>
> > Also, how do I display images in the GUI ? Which
> components must be
> > used to display images ? Can the axis component be used or
> it it just
> > to display plots?
>
> Hi,
> To find images in a directory you can use DIR function.
> example :
> list=dir(fullfile(myDirectory,'*.jpg'));
>
> To display an image juste use the function IMAGE after using
> IMREAD to read the image.
> example :
> img=imread('myImage.gif');
> image(img);
>
> Caroline- Hide quoted text -
>
> - Show quoted text -

Hi,

thanks a lot :)