Unable To Find Explicit Solution [Empty Syms]

1 次查看(过去 30 天)
syms I(t) Mu To %Used to decalre variables as symbol
ode = diff(I,t) == -Mu.*I(t); %Equation Writing
cond = T(0) == To; %Initial condition
Solution_eq2 = dsolve(ode, cond) %Solution the the modified equation == Solution to the IVP
Errors
Warning: Unable to find explicit solution.
> In dsolve (line 201)
In Project (line 37)
Solution_eq2 =
[ empty sym ]

采纳的回答

Star Strider
Star Strider 2021-6-13
There is no function called ‘T’ so ‘T(0)’ is not defined.
Try this instead —
syms I(t) Mu To t %Used to decalre variables as symbol
ode = diff(I,t) == -Mu.*I(t); %Equation Writing
cond = I(0) == To; %Initial condition
Solution_eq2 = dsolve(ode, cond) %Solution the the modified equation == Solution to the IVP
Solution_eq2 = 
.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by