Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
References: <i3djtd$fk1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1280989387 17275 172.30.248.35 (5 Aug 2010 06:23:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 5 Aug 2010 06:23:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1597503
Xref: news.mathworks.com comp.soft-sys.matlab:659269

"Frank " <allinone_2003@yahoo.com.hk> wrote in message <i3djtd$fk1$1@fred.mathworks.com>...
> 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)

Wayne