differential equations with conditions

5 ビュー (過去 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 Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by