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
  1 件のコメント
Zach Anderson
Zach Anderson 2020 年 2 月 1 日
Could RectangularWaveform work similarly?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by