フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Does my code make sense? It runs without errors, but I'm not sure if I did the right thing.

2 ビュー (過去 30 日間)
Dursman Mchabe
Dursman Mchabe 2018 年 10 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi all. On the attached code, I am interested in solving for x (using the @xfun function) and solving for y(1)...y(6), using the @odes function. I have to repeat the calculation 30 times, where for the next time step, I must use the preceding x(i) to solve for y(i+1). Similarly, I must use y(i) to find x(i+1). I have to march on 30 steps in that manner. I am not sure if my code is doing exactly that, however it runs without error, and it gives results.
I thank you.
  5 件のコメント
Dursman Mchabe
Dursman Mchabe 2018 年 10 月 12 日
I thought, the for-loop is serving that purpose. That is exactly where I am not sure. What is the recommendable way?
Torsten
Torsten 2018 年 10 月 12 日
I can't give you a recommendation because I don't know how x(i+1) depends on y(i).

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by