Convolution of rect (t/2) and δ(t+2) - δ(t+1)

6 ビュー (過去 30 日間)
daltonicox
daltonicox 2013 年 9 月 13 日
how can i plot this: g(t) = rect(t/2) * [δ(t+2) - δ(t+1)]. As matter of fact, i want to plot the convolution of this functions. But i'm having trouble creating the rect function. If anyone can help me, i would appreciate it very much.

採用された回答

Image Analyst
Image Analyst 2013 年 9 月 14 日
You can make a rect function by making an array of zeros and placing stretch of 1's in it:
rectPulse = zeros(1, 20);
rectPulse(10:15) = 1;
plot(rectPulse, 'bs-');
  1 件のコメント
daltonicox
daltonicox 2013 年 9 月 14 日
thanks, it wormked

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

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 13 日
編集済み: Azzi Abdelmalek 2013 年 9 月 13 日
rect=@(t) heaviside(t+1)- heaviside(t-1)
  4 件のコメント
daltonicox
daltonicox 2013 年 9 月 13 日
it didn't work, i'm missing something.
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 13 日
Ok, what are you missing?

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

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by