define constants inside a laplace function

조회 수: 8 (최근 30일)
Ivonne R
Ivonne R 2015년 9월 22일
답변: Walter Roberson 2015년 9월 23일
I'd like to get the Laplace of a window function. I'd get the right output if I write this:
b=1;a=2;
syms t s
laplace((heaviside(t-a)-heaviside(t-b)))
ans =
exp(-2*s)/s - exp(-s)/s
but I'd like to preserve a and b as constants. However when I defined as " syms t s a b " it doesn't give the Laplace Transform because there's too many variables. Thanks!

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 23일
laplace((heaviside(t-a)-heaviside(t-b)), t, s)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by