% file: task14.m
% Frequency response of the MA-2 filter:
%  H(e^jw) = 0.5 (1 + e^-jw)

w = [0 : pi/64 : pi];  % values of omega w
H = 0.5 * (1 + exp(-j*w));

figure(2); clf;
plot(w, abs(H));
grid on; xlabel('norm. angular freq.');
title('Amplitude response');
