- Introduce frequency offset

git-svn-id: http://moon:8086/svn/matlab/trunk@8 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2014-07-29 18:04:01 +00:00
parent e7e6e2f42f
commit 0fd40e13b2
+4 -1
View File
@@ -5,9 +5,12 @@ close all;
CP_SIZE = 256;
FFT_SIZE = 1024;
fa = 48000;
fo = 0.0;
k_fft = 2*sqrt(FFT_SIZE);
% Introduce frequency offset
x = 0.5*exp(i*2*pi.*(0:length(x)-1)*fo/fa)' .* x;
figure;
Ns = (CP_SIZE + FFT_SIZE);
Nf = length(x)/Ns;