From: DitzaN on
Hi,

I am using nlfilter function. The function has waitbar. I want to hide the waitbar without editing nlfilter.Something like:
waitbar off
nlfilter
waitbar on

Thanks
Ditza
From: Wayne King on
DitzaN <ditzaspam(a)gmail.com> wrote in message <1538063714.49821.1257931729349.JavaMail.root(a)gallium.mathforum.org>...
> Hi,
>
> I am using nlfilter function. The function has waitbar. I want to hide the waitbar without editing nlfilter.Something like:
> waitbar off
> nlfilter
> waitbar on
>
> Thanks
> Ditza
Hi Ditza, One way is to comment out the waitbar call in the code for nlfilter on lines 64 and 70.

>>edit nlfilter

Hope that helps,
wayne
From: DitzaN on
I know I can edit the function. My question is, Is there is an other way to do it? If I can do it without editing the function?
From: Wayne King on
DitzaN <ditzaspam(a)gmail.com> wrote in message <677366799.51226.1257947627403.JavaMail.root(a)gallium.mathforum.org>...
> I know I can edit the function. My question is, Is there is an other way to do it? If I can do it without editing the function?

That's the only way I see to do it because waitbar() is being called inside of a for loop in the Matlab code. Perhaps someone else can give you a solution that does not require commenting out the two lines of code.

Wayne
From: Jan Simon on
Dear DitzaN!

> I know I can edit the function. My question is, Is there is an other way to do it? If I can do it without editing the function?

You can copy the original file and edit the copy.
What is the benefit of not editing the function?
Jan