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.

1 次查看(过去 30 天)
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