For some reason, the imaginary portion of this matrix isn't showing up.
%time linespace
t = 0:1/fs:((N-1)/fs);g = sin(2*f1*pi*t)+B*sin(2*f2*pi*t + phi);%for an 12-point DFT we need 12 input samples
xn = zeros(1,12);for i = 1:12 xn(i) = g(i);endMN_Matrix = zeros(6,12);for i = 1:6 for j = 1:12 xn(j).*(cos((((j-1)*2*pi*(i-1))/N))-(j*sin(((j-1)*2*pi*(i-1))/N))); end enddisp(MN_Matrix)
Best Answer