expr2=coll​ect(EXPR,'​exp(-t)') Why is it wrong?

2 ビュー (過去 30 日間)
zhenyu zeng
zhenyu zeng 2019 年 4 月 22 日
編集済み: madhan ravi 2019 年 4 月 22 日
EXPR=str2sym('(x^2+x*exp(-t)+1)*(x+exp(-t))')
expr1=collect(EXPR)
expr2=collect(EXPR,'exp(-t)')
Why expr2 shows: sym.charToFunction (line 26) Invalid variable name

採用された回答

madhan ravi
madhan ravi 2019 年 4 月 22 日
編集済み: madhan ravi 2019 年 4 月 22 日
expr2=collect(EXPR,exp(-t)) % no single quotes around the second argument

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by