フィルターのクリア

keep getting error when trying to take Laplace transform

2 ビュー (過去 30 日間)
Brenda Galabe
Brenda Galabe 2018 年 12 月 9 日
回答済み: Walter Roberson 2018 年 12 月 10 日
trying to find laplace for homogenous equation : cI′′ + dI′ + I/e = 0
syms D2I DI I gensoln deq t s
deq = 'c*D2I + d*DI + (1/e)*I';
ldeqdiff = laplace(deq,t,s);
ldeqdiff=subs(1deqdiff)
keep getting error :
ldeqdiff=subs(1deqdiff)
Error: Unexpected MATLAB operator.

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 12 月 10 日
You have
ldeqdiff = laplace(deq,t,s);
which assigns to a variable name that begins with a lower-case 'L'. Then you have
ldeqdiff=subs(1deqdiff)
which attempts to subs() on an expression that begins with the digit 1 not with a lower-case 'L'.
deq = 'c*D2I + d*DI + (1/e)*I';
ldeqdiff = laplace(deq,t,s);
laplace() has never been documented as accepting a character vector -- not even in the days when the Symbolic Toolbox was based upon Maple instead of MuPAD.

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by