differential equations with conditions

6 visualizaciones (últimos 30 días)
Nikko Magsino
Nikko Magsino el 23 de Nov. de 2017
Respondida: Birdman el 23 de Nov. de 2017
I would like to know how to fix the errors in my code.
syms current(t)
eqn = (diff(current,t,2)*L) + (diff(current,t)*R) + (current/C) == 0;
Dcurrent = diff(current,t);
cond=[current(0)==0 Dcurrent(0)==8];
currentSol(t)=dsolve(eqn,cond);
  1 comentario
Torsten
Torsten el 23 de Nov. de 2017
Assign values to L, R and C or declare them as "syms".
Best wishes
Torsten.

Iniciar sesión para comentar.

Respuestas (1)

Birdman
Birdman el 23 de Nov. de 2017
syms current(t) R L C
eqn = (diff(current,t,2)*L) + (diff(current,t)*R) + (current/C) == 0;
Dcurrent = diff(current,t);
cond=[current(0)==0 Dcurrent(0)==8];
currentSol(t)=dsolve(eqn,cond);

Community Treasure Hunt

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

Start Hunting!

Translated by