%% part of homework 1?
% Only applicable in the case $\alpha$ = 1

t = -6:0.01:6;
T = 1;
close all
figure; hold on;
plot(t, sinc(2*t/T))
plot(t, 0.5*sinc(2*t/T+1))
plot(t, 0.5*sinc(2*t/T-1))
plot(t, sinc(2*t/T) + 0.5*sinc(2*t/T+1) + 0.5*sinc(2*t/T-1))

figure; hold on;
rc = sinc(2*t/T) + 0.5*sinc(2*t/T+1) + 0.5*sinc(2*t/T-1);

stem(fftshift(abs(fft(rc))))
hold on
stem(fftshift(abs(fft(sinc(t/T)))))
grid on
