Why am I not getting the correct Laplace Transform of a Heaviside step function?

52 次查看(过去 30 天)

The Laplace Transform of the Heaviside step function is "exp(-a*s)/s". I am trying to compute this using the Symbolic Math Toolbox.

>> syms a t
>> laplace(heaviside(t-a))
ans =
laplace(heaviside(t - a), t, s)

Why doesn't this return "exp(-a*s)/s"?

采纳的回答

MathWorks Support Team
此 个回答 已被 João Vitor 标记

This is the expected behavior because the Laplace Transform of the Heaviside step function depends on whether a > 0 or a < 0.

For a > 0: laplace(heaviside(t-a)) = exp(-a*s)/s

For a < 0: laplace(heaviside(t-a)) = 1/s

In order to get the desired output, specify the assumption for the variable "a":

>> syms a t
>> assume(a > 0);
>> laplace(heaviside(t-a))
ans =
exp(-a*s)/s

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematical Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by