From: Jacob on
Hi, I have what I hope is a simple question. I am running some code which sometimes produces a MATLAB:nearlysingularmatrix warning. I have disabled this in the usual way (warning('off','MATLAB:nearlysingularmatrix'), which works fine under serial operation. When I run this program in a parfor loop, however, the warnings still get printed to the screen, which is annoying, in this form:

Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 3.860704e-017.
> In myfun at 145
In parallel_function>make_general_channel/channel_general at 871
In remoteParallelFunction at 31

How can I turn off this warning so that it is also turned off on my workers?

Thank you,
Jacob
From: Ashish Uthama on
On Mon, 22 Mar 2010 15:55:21 -0400, Jacob <jkrich(a)fas.nospam.harvard.edu>
wrote:

> Hi, I have what I hope is a simple question. I am running some code
> which sometimes produces a MATLAB:nearlysingularmatrix warning. I have
> disabled this in the usual way
> (warning('off','MATLAB:nearlysingularmatrix'), which works fine under
> serial operation. When I run this program in a parfor loop, however, the
> warnings still get printed to the screen, which is annoying, in this
> form:
>
> Warning: Matrix is close to singular or badly scaled.
> Results may be inaccurate. RCOND = 3.860704e-017.
>> In myfun at 145
> In parallel_function>make_general_channel/channel_general at 871
> In remoteParallelFunction at 31
>
> How can I turn off this warning so that it is also turned off on my
> workers?
>
> Thank you,
> Jacob

You would have to turn off the warning on the workers too.
This might help:
doc pctRunOnAll
From: Jacob on
Thanks! That worked perfectly.
Jacob

"Ashish Uthama" <first.last(a)mathworks.com> wrote in message <op.u9zi2czza5ziv5(a)uthamaa.dhcp.mathworks.com>...
> On Mon, 22 Mar 2010 15:55:21 -0400, Jacob <jkrich(a)fas.nospam.harvard.edu>
> wrote:
>
> > Hi, I have what I hope is a simple question. I am running some code
> > which sometimes produces a MATLAB:nearlysingularmatrix warning. I have
> > disabled this in the usual way
> > (warning('off','MATLAB:nearlysingularmatrix'), which works fine under
> > serial operation. When I run this program in a parfor loop, however, the
> > warnings still get printed to the screen, which is annoying, in this
> > form:
> >
> > Warning: Matrix is close to singular or badly scaled.
> > Results may be inaccurate. RCOND = 3.860704e-017.
> >> In myfun at 145
> > In parallel_function>make_general_channel/channel_general at 871
> > In remoteParallelFunction at 31
> >
> > How can I turn off this warning so that it is also turned off on my
> > workers?
> >
> > Thank you,
> > Jacob
>
> You would have to turn off the warning on the workers too.
> This might help:
> doc pctRunOnAll