Why the last row is wrong?

t=sym('t','positive')
ut=str2sym('Heaviside(t)-Heaviside(t-1)')
ht=t*exp(-t)
yt=int(subs(ut,t,tao)*subs(ht,t,t-tao),tao,0,t)
yt=collect(yt,'Heaviside(t-1)')
What can I do to correct the last row?
My product is Matlab R2018
Thanks.

1 个评论

If you mention, that there is an error in the last line, please post the error message. It is useful to provide as much information as possible.

请先登录,再进行评论。

回答(1 个)

zhenyu zeng
zhenyu zeng 2019-5-6

0 个投票

Wrong: sym.charToFunction (line 26)
Invalid variable name.
Wrong: sym/collect (line 40)
x = sym.charToFunction(x);

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by