Iteration code help.

1 回表示 (過去 30 日間)
Roger Vegeta
Roger Vegeta 2017 年 4 月 18 日
コメント済み: Jan 2017 年 4 月 18 日
Hello everyone, I appreciate your help. I am trying to write a code that performs iterations. I have a initial guess L=1, a function x(L) and another function L(x).
This is the algorithm I need:
(1)- calculate x(L) at L=1.
(2)- use the x from part (1) and calculate a new L using L(x).
(3)- use the new L from part (2)and calculate a new x using x(L).
(4)- if the x from part (1) is equal to the x from part (3) we are done if not use the x from part (3)and repeat the process from part (2) until the both x are equal.
Again thanks so much for the help.
  2 件のコメント
Rik
Rik 2017 年 4 月 18 日
Have a read here and here. It will greatly improve your chances of getting an answer.
This is not the place to find consultants to write code for you, but the place to find people that will help you when you get stuck.
Show that you tried and what you tried, and people will be much more likely to help you out.
Jan
Jan 2017 年 4 月 18 日
@Rogelio Garcia: You forgot to ask a question. How can we help you?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by