- add frequency offset injection for baseband processing
git-svn-id: http://moon:8086/svn/matlab/trunk@38 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
@@ -29,6 +29,7 @@ h_cir = [0 0 .1 -.2 .5 .2 -.1 0 0 ];
|
|||||||
if (ndim == 2)
|
if (ndim == 2)
|
||||||
fprintf('Mode: Baseband\n');
|
fprintf('Mode: Baseband\n');
|
||||||
x = xwav(:, 1) + j*xwav(:, 2);
|
x = xwav(:, 1) + j*xwav(:, 2);
|
||||||
|
x = x.*exp(-j*(2*pi*(foff/fs_)*(0:len-1)'));
|
||||||
elseif (ndim == 1)
|
elseif (ndim == 1)
|
||||||
fprintf('Mode: Passband\n');
|
fprintf('Mode: Passband\n');
|
||||||
x = xwav.*exp(-j*(2*pi*(0.25-foff/fs_)*(0:len-1)'));
|
x = xwav.*exp(-j*(2*pi*(0.25-foff/fs_)*(0:len-1)'));
|
||||||
|
|||||||
Reference in New Issue
Block a user