Info

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

I have solved an ode using ode45. The solution is correct but when I try to use the solution on other functions the program only takes the initial conditions.

2 ビュー (過去 30 日間)
Ioannis Violaris
Ioannis Violaris 2016 年 11 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
My code is attached. It runs but the temperature plot is wrong. Can someone tell me how to fix this?
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 11 月 26 日
Undefined function or variable ao in
Aavg=@ (t,a) a(1)*A1+a(2)*A2+(ao(a))*A0; %Average planetary albedo
Reminder: we do not know what the temperature plot should look like, so it would help if you posted an example of what you are hoping for, or describe what difference you observe.

回答 (1 件)

Ezor
Ezor 2016 年 12 月 14 日
編集済み: Ezor 2016 年 12 月 14 日
That is strange that your ao function is defined after the Aavg one which uses a0. Same thing for vector a. Is it done on purpose?

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by