iterations required for parameter convergence

4 views (last 30 days)
Hi,
I have a code that uses an iteration algorithm to estimate some parameters. Is there a way to get it to iterate until the parameter values converge? (The number of iterations required changes each time, since I'm adding random error to the data)
Thanks!

Answers (1)

Matt J
Matt J on 18 Dec 2014
Yes, you can use a while loop.
while ~converged
%iterate
end

Categories

Find more on Linear Algebra in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!