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

3 次查看(过去 30 天)
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 个)

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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matched Filter and Ambiguity Function 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by