作者good6608 (尼可拉斯)
看板MATLAB
标题[讨论] QPSK Rayleigh通道系数模拟之差异
时间Wed Oct 31 13:34:59 2012
各位板友好:
我目前在写一个QPSK经过one-path Rayleigh通道和AWGN通道的 Simulation,
然後计算 Simulation 後的 BER.
其数学式子为 Y = X*h + n,
Y : 经过通道後的接收讯号.
X : 经过通道前的发送讯号.
h : Rayleigh 通道
n : AWGN 通道
当我的 Rayleigh 通道的写法如下时:
h = 1/sqrt(2)*[randn(1,Ns)+j*randn(1,Ns)]; % Ns 为传送 symbol 数量
最後画出来 BER Curve 是与理论公式是完全 Match 的,
理论公式为 Pe = (1/2)*(1-sqrt((Eb/No)/(1+(Eb/No)))).
但当我使用 Jake's model 产出的 Rayleigh 通道时,
最後画出来的 BER Curve 与理论公式虽然相同,
但 Simulation 的 Curve 比理论公式的 Curve 好约 0.2 dB.
请问为什麽呢?
以下是我写的产出 Rayleigh 通道的 Jake's model.
h = Jakes_Flat(1,0.001,Ns,1040); % Ns 为传送 symbol 数量
------------------------------------------------------------------------------
function [h,tf] = Jakes_Flat(fd,Ts,Ns,t0,E0)
% Inputs:
% fd,Ts,Ns : Doppler frequency, sampling time, number of samples
% t0, E0 : initial time, channel power
% Outputs:
% h, tf : complex fading vector, current time
if nargin<5, E0=1; end
if nargin<4, t0=0; end
phi_N = 0; % inital phase of the maximum Doppler frequency sinusoid
N0 = 8; % As suggested by Jakes
N = 4*N0 + 2; % an accurate approximation
wd = 2*pi*fd; % Maximum Doppler frequency[rad]
t = t0 + [0:Ns - 1]*Ts;
tf = t(end) + Ts; % Time vector and Final time
coswt=[sqrt(2)*cos(wd*t); 2*cos(wd*cos(2*pi/N*[1:N0]')*t)];
h = E0/sqrt(2*N0+1)*exp(j*[phi_N pi/(N0+1)*[1:N0]])*coswt;
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.121.130.124