Replacing Variable in an ODE
이전 댓글 표시
syms T(t)
ode = diff(T,t) == (Lemda-(Sigma.*T));
cond = T(0) == To;
Solution = dsolve(ode, cond)
ERRORS; (Not replacing with a variable)
Undefined function or variable 'Lemda'.
Error in Project (line 11)
ode = diff(T,t) == (Lemda-(Sigma.*T));
댓글 수: 4
SALAH ALRABEEI
2021년 6월 13일
편집: SALAH ALRABEEI
2021년 6월 13일
Are Lamda and sigma constants or vaiables!
Walter Roberson
2021년 6월 13일
It does not matter. dsolve() is for symbolic expressions, so we can create symbolic variables without caring about whether they will later be constants or later will be changed.
Fahad Ramzan
2021년 6월 13일
SALAH ALRABEEI
2021년 6월 13일
Thanks Walter.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

