Simple ODE can't be solve by dsolve
古いコメントを表示
Hello,
I'm trying to solve the following differential equation:
dx2/dt = (-x2/0.19) + (x3/12)
Both x2 and x3 are functions of time t.
My code is the following one:
syms x2(t)
syms x3(t)
vgl = (diff(x2, t) == -(x2(t)/0.19) + (x3(t)/12));
bvw = (x2(0) == 0);
Sopl(t) = dsolve(vgl, bvw)
I get the following error: Attempt to execute SCRIPT dsolve as a function: C:\Users\Gebruiker\Desktop\dsolve.m
Error in qsfdqsf (line 5) Sopl(t) = dsolve(vgl, bvw)
What do I do wrong?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Utilities for the Solver についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!