From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: LSQR
Date: Thu, 5 Aug 2010 06:23:07 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 12
Message-ID: <i3dlca$grr$>
References: <i3djtd$fk1$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1280989387 17275 (5 Aug 2010 06:23:07 GMT)
NNTP-Posting-Date: Thu, 5 Aug 2010 06:23:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1597503
Xref: comp.soft-sys.matlab:659269

"Frank " <> wrote in message <i3djtd$fk1$>...
> How can I stop the messages such as "lsqr stopped at iteration 20 without converging to the desired tolerance 0.001 because the maximum number of iterations was reached." during the after execution of the function?
> Thanks a lot.

Hi Frank, It's been a while since I used that function, but are you using the flag output argument with lsqr?

[X,FLAG] = lsqr(...)

I think that should capture that warning (as an integer) and not output the actual warning in the workspace. (if I remember correctly)