solving a differential equation

2 views (last 30 days)
Amjad Green
Amjad Green on 5 May 2018
Commented: Torsten on 7 May 2018
how do i solve it
  4 Comments
Torsten
Torsten on 7 May 2018
vdot(2)=(-1/(R*C))*v(2)-(1/(L*C)*v(1));
instead of
vdot(2)=(-1/(R*C))*v(2)-(1/(L*C)*vdot(1));
Best wishes
Torsten.

Sign in to comment.

Answers (1)

Birdman
Birdman on 7 May 2018
Use Symbolic approach:
R=1000;L=0.8;C=1e-3;
syms v(t)
eq=diff(v,2)+(1/(R*C))*diff(v)+v/(L*C)==0;
cond1=v(0)==10;
Dv=diff(v);
cond2=Dv(0)==0;
V(t)=dsolve(eq,[cond1 cond2])
t=0:0.01:8;
plot(t,V(t))

Community Treasure Hunt

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

Start Hunting!

Translated by