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!

回答 (1 件)

Anthony Gurunian
Anthony Gurunian 2021 年 4 月 9 日

0 投票

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 件のコメント

Ka Wai Yip
Ka Wai Yip 2021 年 4 月 9 日
May I know what should be typed fot this equation? I am not very familiar with MATLAB, thanks
John D'Errico
John D'Errico 2021 年 4 月 9 日
Then you need to read the manual!
Try the MATLAB Onramp tutorial.
Ka Wai Yip
Ka Wai Yip 2021 年 4 月 10 日
Hi may I know how to do an inital gues? It has not been mentioned in the tutorial...
Anthony Gurunian
Anthony Gurunian 2021 年 4 月 10 日
lamda_n = 0

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2021 年 4 月 9 日

コメント済み:

2021 年 4 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by