differential equations with conditions

조회 수: 6 (최근 30일)
Nikko Magsino
Nikko Magsino 2017년 11월 23일
답변: Birdman 2017년 11월 23일
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
Torsten
Torsten 2017년 11월 23일
Assign values to L, R and C or declare them as "syms".
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

답변 (1개)

Birdman
Birdman 2017년 11월 23일
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);

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by