フィルターのクリア

trying to get general solution for differential equation but keep getting error

1 回表示 (過去 30 日間)
Brenda Galabe
Brenda Galabe 2018 年 12 月 11 日
回答済み: madhan ravi 2018 年 12 月 11 日
syms dx1 gensoln eq1
eq1='dx1-x2/2+20' ;
gensoln = dsolve(eq1,'t');

回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 11 日
See https://in.mathworks.com/help/symbolic/solve-a-single-differential-equation.html for better understanding and how to declare variables as a function of another , below is an example on how to solve but not sure if that's what you want to do but generall that's how you solve an ode symbollically,...
syms x1(t) x2(t)
dx1=diff(x1);
ode=0==dx1-x2/2+20 ;
gensoln = dsolve(ode);

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by