Why the last row is wrong?

1 Ansicht (letzte 30 Tage)
zhenyu zeng
zhenyu zeng am 6 Mai 2019
Beantwortet: zhenyu zeng am 6 Mai 2019
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 Kommentar
Jan
Jan am 6 Mai 2019
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

zhenyu zeng
zhenyu zeng am 6 Mai 2019
Wrong: sym.charToFunction (line 26)
Invalid variable name.
Wrong: sym/collect (line 40)
x = sym.charToFunction(x);

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by