%% Ameer Alkam

%% 1120217

%%
n = -0:1/8000:1/1000;
x = cos(2*pi*500.*n)+cos(2*pi*1500.*n)+cos(2*pi*3500.*n);

%%
B = 1/w*ones(w,1);
y = filter(B(10), 1, x);

stem(y);
figure(2); stem(x);