From: Hardik on
i wanted to ask another question...When the Axes Box does not contain any image and when user clicks on the Push button then an error should come or another MSGBOX should be displayed sayin "Pllease upload an image" What shall we do in dis case???
what is the condition to check whether the axes box is empty or not...

thanx in advance
From: Hardik on
"Hardik " <hardik_88(a)hotmail.com> wrote in message <hru7hi$gf5$1(a)fred.mathworks.com>...
> i wanted to ask another question...When the Axes Box does not contain any image and when user clicks on the Push button then an error should come or another MSGBOX should be displayed sayin "Pllease upload an image" What shall we do in dis case???
> what is the condition to check whether the axes box is empty or not...
>
> thanx in advance


ui tried writing the follow
if get(0,'CurrentFigure')

% if the axes is empty
warndlg('Please Upload an Image','Upload Image');

else

Tot=test_eucled(fullFileName);
% link to d other file
end

but now its showing the alert box even when an image is uploaded....
how do i solve dis problem??