Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: How can delete a msgbox in a function
Date: Fri, 16 May 2008 17:28:18 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 17
Message-ID: <g0kg7i$206$1@canopus.cc.umanitoba.ca>
References: <g0k4ll$mq7$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1210958898 2054 192.70.172.160 (16 May 2008 17:28:18 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Fri, 16 May 2008 17:28:18 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:468906


In article <g0k4ll$mq7$1@fred.mathworks.com>,
Frank Pezzulo <john.doe.nospam@mathworks.com> wrote:

>I have a function that have at the end a msgbox. When i call
>this function in one way i want to show this msgbox, but if
>i call function in another way i don't want to show it. How
>i can call the function without show msgbox?

Sorry, I am not clear on what you mean by calling the function
"in another way".

If there is a way that you can determine by examining the input
arguments that the function was called one way or the other, then
you just wrap the msgbox() call within an if/end pair that does
the appropriate test.
-- 
'Roberson' is my family name; my given name is 'Walter'.