Solving first order differential equation
2 ビュー (過去 30 日間)
古いコメントを表示
How is it possible to solve the following differential eqiuation using syms and dsolve? I'm quite confused on how to solve dx/dx on matlab. The condition is x(0)=4. Any help would be greatly appreciated.

2 件のコメント
James Tursa
2021 年 4 月 12 日
編集済み: James Tursa
2021 年 4 月 12 日
Double check your assignment. That is probably supposed to be dx/dt, not dx/dx.
回答 (1 件)
Abhishek Gupta
2021 年 4 月 15 日
編集済み: Abhishek Gupta
2021 年 4 月 15 日
Hi,
You can solve the given ODE as follows: -
syms x(t);
ode = 2*diff(x,t) + 7*x == t;
cond = x(0) == 4;
xSol(t) = dsolve(ode,cond);
For more details, check out the following documentation link: -
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Particle & Nuclear Physics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!