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