Convolution of rect (t/2) and δ(t+2) - δ(t+1)
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuesta aceptada
Image Analyst
el 14 de Sept. de 2013
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-');
Más respuestas (1)
Azzi Abdelmalek
el 13 de Sept. de 2013
Editada: Azzi Abdelmalek
el 13 de Sept. de 2013
rect=@(t) heaviside(t+1)- heaviside(t-1)
4 comentarios
Ver también
Categorías
Más información sobre Computer Vision with Simulink en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!