how to solve simple differential equations

19 ビュー (過去 30 日間)
TT
TT 2014 年 11 月 22 日
回答済み: Star Strider 2014 年 11 月 22 日
Hi all,
How can I solve this equation?!
dx/dt+y=0
dy/dt-x=0
x(0)=3/2
y(0)=0
Thanks

採用された回答

Star Strider
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 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by