Currently in a digital signal processing class, but need help reproducing the results of this code without using symbolic math in Matlab but rather using nested for loops to generate the values of X as a function of omega.
This is what I have so far, using various matlab ideas for DTFT:
N=8;
figure
upper = pi;
lower = -pi;
bw = 1000;
omega = linspace(-pi,pi,1000);
for k=0:bw
for n=0:N-1
Y = X(k+1) + x(n+1)*exp(-j*2*pi*n*k/N) ;
end
end