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일

0 개 추천

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);

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2017년 11월 23일

답변:

2017년 11월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by