%% DTconv.m computes the convolution of two discrete-time 
%% signals and plots the resulting signal 
% define the signals
% first value is for time n=0
x=[1 4 -3 -2 -1]; 
h=[2 2 2 2 -3 -3 -3 -3 -3];
% compute the convolution
y=conv(x,h);
% time vector
n=0:1:length(y)-1;
%plot real and imaginary parts
stem(n,y)

