how to add a sinusoidal signal and rectangular pulse in matlab

조회 수: 1 (최근 30일)
shashi boorla
shashi boorla 2017년 7월 27일
댓글: Zach Anderson 2020년 2월 1일
sin(t)+[u(t)-u(t-3)]

답변 (1개)

Harish Saranathan
Harish Saranathan 2017년 7월 27일
Hello Shashi,
You can directly use the "sin" and "heaviside" functions for the sinusoid and step respectively. The documentation for these functions can be found here:
Accordingly, the line of code will look like this:
sin(t) + (heaviside(t) - heaviside(t-3))
Harish

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by