expr2=collect(EXPR,'exp(-t)') Why is it wrong?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
madhan ravi
2019-4-22
编辑:madhan ravi
2019-4-22
expr2=collect(EXPR,exp(-t)) % no single quotes around the second argument
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!