how to solve simple differential equations
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
How can I solve this equation?!
dx/dt+y=0
dy/dt-x=0
x(0)=3/2
y(0)=0
Thanks
0 个评论
采纳的回答
Star Strider
2014-11-22
This way, if you have the Symbolic Math Toolbox:
syms x(t) y(t)
[x,y] = dsolve(diff(x) + y == 0, diff(y) - x == 0, x(0)==3/2, y(0)==0)
x =
(3*cos(t))/2
y =
(3*sin(t))/2
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!