Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
LSQR

Subject: LSQR

From: Frank

Date: 5 Aug, 2010 05:58:05

Message: 1 of 3

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.

Subject: LSQR

From: Wayne King

Date: 5 Aug, 2010 06:23:07

Message: 2 of 3

"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

Subject: LSQR

From: Frank

Date: 5 Aug, 2010 06:55:24

Message: 3 of 3

Thanks, Wayne.


> 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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us