Path: news.mathworks.com!not-for-mail
From: "Frank Pezzulo" <john.doe.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How can delete a msgbox in a function
Date: Sat, 17 May 2008 12:37:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 41
Message-ID: <g0mjhd$m8p$1@fred.mathworks.com>
References: <g0k4ll$mq7$1@fred.mathworks.com> <g0kg7i$206$1@canopus.cc.umanitoba.ca>
Reply-To: "Frank Pezzulo" <john.doe.nospam@mathworks.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1211027821 22809 172.30.248.37 (17 May 2008 12:37:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 17 May 2008 12:37:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1258276
Xref: news.mathworks.com comp.soft-sys.matlab:468997


Hi Walter,

thanks for your reply. In total i call function 2 times. One
time i want show msgbox, the second one i call same function
but this time i don't want msgbox. Let me know if there is a
simple way to do it.

Thanks

Francesco








roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g0kg7i$206$1@canopus.cc.umanitoba.ca>...
> 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'.