📄 channel.mht
字号:
From: <由 Microsoft Internet Explorer 5 保存>
Subject:
Date: Wed, 25 Jul 2007 21:06:46 +0800
MIME-Version: 1.0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: 7bit
Content-Location: http://wireless.per.nl/reference/chaptr05/ofdm/matlab/channel.m
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY><PRE>%----------------------------------------
% Multi-Carrier channel simulation
% for OFDM and OMC-CDMA systems
%----------------------------------------
nchan = 64
% number of subcarriers
ratio = 0.01;
% Td over Tb: delay spread relative to OFDM frame duration
%-----------------------------------------
% create channel correlation matrix
c = 2 * pi * ratio;
temp = [];
for n = 1:nchan
nc = (n-1) * c;
entry = (1 + i * nc)/ ( 1 + nc^2 );
temp = [temp entry ];
end
Rchan = toeplitz(temp);
% Rchan is the complex channel
% autocorrelation matrix
%----------------------------------
%
% create a complex sample channel H
[E, L] = eig(Rchan);
SQRTL = sqrt(L);
A = E*SQRTL / sqrt(2);
G = randn(nchan, 1)+ i*randn(nchan, 1);
H = A * G;
% plot(abs(H))
</PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -