solving diffrential equation systems
2 views (last 30 days)
Show older comments
Hello everybody I want to solve this series of diffrential equation and everytime matlab types an eror what should I do please somebody help me v1=1000; v2=1500; v3=100; k1=.1; k2=.2; k3=.4; syms f(t) g(t) y(t) S=dsolve(diff(f)==((1/v1)*(1000+100*g-1100*f-k1*v1*f)),diff(g)==((1/v2)*(1100*f-1100*g-k2*v2*g)),diff(y)==((1/v3)*(1000*g-1000y-k3*v3*y)) and f(0) and g(0) and y(0) are all zero
0 Comments
Answers (2)
Torsten
on 7 Nov 2014
What exactly is the error message ?
Best wishes
Torsten.
2 Comments
Torsten
on 10 Nov 2014
Maybe because there is a parenthesis missing behind the expression
S=dsolve(diff(f)==((1/v1)*(1000+100*g-1100*f-k1*v1*f)),diff(g)==((1/v2)*(1100*f-1100*g-k2*v2*g)),diff(y)==((1/v3)*(1000*g-1000y-k3*v3*y))
?
Best wishes
Torsten.
VBBV
on 21 Mar 2022
v1=1000;
v2=1500;
v3=100;
k1=.1; k2=.2; k3=.4;
syms f(t) g(t) y(t)
eq1 = diff(f)==((1/v1)*(1000+100*g-1100*f-k1*v1*f))
eq2 = diff(g)==((1/v2)*(1100*f-1100*g-k2*v2*g))
eq3 = diff(y)==((1/v3)*(1000*g-1000*y-k3*v3*y)) % use the multiplication operator
S=dsolve([eq1 eq2 eq3])
0 Comments
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!