From: Hardik on
hii!!
i hav created a simple GUI comprising of a button called Load Image and axes1 where d image will be displayed...
if the image file is in d same folder in which d GUI file is present it is displaying..

but if d image file is in some other folder it is not displayin...

how to solve dis problem?? d image can be present anywhere on d machine be it c: d: my documents desktop etc....

how shall i go about ?? since im new to matlab.....pls help

dis is wat i hav written!!

function updateAxes
hMainGui = getappdata(0, 'hMainGui');
fileName = getappdata(hMainGui, 'fileName');
rgbImage = imread(fileName);
hAxes = findobj(hMainGui, 'type', 'axes');
axes(hAxes);
imshow(rgbImage);

thanx in advance!! Hardik!!
From: ImageAnalyst on
Hardik!!  

You have to specify the full path (folder and basefilename) and it
will work. Otherwise how could it know where it's located? If it has
to guess, it goes down the search path, but it if doesn't find it
there then it will fail.

From: Hardik on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <1600cca2-bc41-4aab-a52b-29f1c642ca8d(a)w42g2000yqm.googlegroups.com>...
> Hardik!!  
>
> You have to specify the full path (folder and basefilename) and it
> will work. Otherwise how could it know where it's located? If it has
> to guess, it goes down the search path, but it if doesn't find it
> there then it will fail.


hii!!
Thank You so much for replying.....
ohh alrite.....i will try implementing that...
thanx again!!