%SARA TANVIR
%DIGITAL SIGNAL ROCESING
%EE416
%PROJECT 4


clear all;

n=0:449     %range of n specified
x=cos(0.2*pi*n)+sin(0.54*pi*n)+sin(0.56*pi*n)+cos(0.58*pi*n)+cos(0.9*pi*n);
[H,W1]=freqz(x,1,256);
mag=abs(H);
figure(1);
plot(W/pi,mag);
title('FOURIER TRANSFORM OF THE FUNCTION');
xlabel('FREQUENCY');
ylabel('AMPLITUDE X(ejw)');