How to iterate an equation?

Hi I got a problem with iterating an equation and I have to estimate a value from it. Anyone has an idea?
Thanks!

Answers (1)

Anthony Gurunian
Anthony Gurunian on 9 Apr 2021
Make an intial guess foor lamda_n, then do a for loop with equaiton 2. Exit the loop when abs(lambda_n+1 - lambd_n) is less than some tolerance.

4 Comments

May I know what should be typed fot this equation? I am not very familiar with MATLAB, thanks
Then you need to read the manual!
Try the MATLAB Onramp tutorial.
Hi may I know how to do an inital gues? It has not been mentioned in the tutorial...
lamda_n = 0

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 9 Apr 2021

Commented:

on 10 Apr 2021

Community Treasure Hunt

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

Start Hunting!