Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Urgent

Subject: Urgent

From: Hardik

Date: 6 May, 2010 11:44:06

Message: 1 of 5

When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window......

Subject: Urgent

From: Sean

Date: 6 May, 2010 11:58:05

Message: 2 of 5

"Hardik " <hardik_88@hotmail.com> wrote in message <hrua26$1av$1@fred.mathworks.com>...
> When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window......


What error or action occurs when you do exactly what you just said?

Subject: Urgent

From: Mark Shore

Date: 6 May, 2010 12:15:22

Message: 3 of 5

"Hardik " <hardik_88@hotmail.com> wrote in message <hrua26$1av$1@fred.mathworks.com>...
> When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window......

Two things, because my second coffee hasn't kicked in yet.

1. Use a descriptive subject line (not "Urgent") and/or tag the message with keywords.

2. This is not - by any possible stretch of the imagination - urgent.

Subject: Urgent

From: Hardik

Date: 6 May, 2010 12:48:04

Message: 4 of 5

"Mark Shore" <mshore@magmageosciences.ca> wrote in message <hrubsq$pf$1@fred.mathworks.com>...
> "Hardik " <hardik_88@hotmail.com> wrote in message <hrua26$1av$1@fred.mathworks.com>...
> > When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window......
>
> Two things, because my second coffee hasn't kicked in yet.
>
> 1. Use a descriptive subject line (not "Urgent") and/or tag the message with keywords.
>
> 2. This is not - by any possible stretch of the imagination - urgent.

im sorry i meant...
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...

i 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??

thanx in advance..

Subject: Urgent

From: Steven Lord

Date: 6 May, 2010 14:57:35

Message: 5 of 5


"Hardik " <hardik_88@hotmail.com> wrote in message
news:hrudq4$5qb$1@fred.mathworks.com...
> "Mark Shore" <mshore@magmageosciences.ca> wrote in message
> <hrubsq$pf$1@fred.mathworks.com>...
>> "Hardik " <hardik_88@hotmail.com> wrote in message
>> <hrua26$1av$1@fred.mathworks.com>...
>> > When a person searches for an image without uploading an
>> > image......What error pops up on the screen.......Does it show an axes
>> > box empty? or does it take the user to another window.......If another
>> > window what is the particular window......
>>
>> Two things, because my second coffee hasn't kicked in yet.
>>
>> 1. Use a descriptive subject line (not "Urgent") and/or tag the message
>> with keywords.
>>
>> 2. This is not - by any possible stretch of the imagination - urgent.
>
> im sorry i meant...
> 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???

Since this sounds like you're working with a GUI you've been given, I would
contact the author of that GUI and ask them for clarification and/or to
include more information about what specifically you need to do in the
message box.

> what is the condition to check whether the axes box is empty or not...

There is no such condition (short of doing some serious image processing,
and even that wouldn't always work.) You could check if the axes has no
children, but what if an object on another axes overlaps that axes? What if
that overlapping object is the same color as the axes it's overlapping --
does that count as an empty "axes box" or not?

And I agree with Mark's first comment -- you should definitely use a more
specific subject line than "Urgent". Make your post stand out by giving it
a clear, yet descriptive subject -- something like "How can I determine if
my axes box is empty?" would probably draw more attention from people
interested in helping with graphics questions.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us