下载此文档

OFDM-MATLAB仿真程序资料.docx


文档分类:通信/电子 | 页数:约8页 举报非法文档有奖
1/8
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/8 下载此文档
文档列表 文档介绍
: OFDM Simulator (outer function)
clear all;
A = [1 1/exp(1) 1/exp (2) ]; % power delay profile
N = 64; % number of symbols in a single OFDM symbol
GI = 16; % guard in terval
Mt = 1; % n umber of Tx antennas
Mr = 1; % n umber of Rx antennas
sig2 = 1e-3; % no ise varia nee
M = 8; % max eon stellati on bit n umber
Mgap = (1:():); % gap
Btot = 100*Mt; % total # bits per OFDM symbol
TransmitIter = 50; % # iterations of symbol transmissions for each channel instanee Channeliter = 100; % # iterations of independent identically distributed channel instances Gapiter = len gth(Mgap);
load
load
load
load
load
TotEbNo =[];
Errors =[];
EbNo =[];
for lGap = 1:Gaplter
lGap
gap = Mgap(lGap);
totalErrors = 0;
for lCha n = 1:Cha nn ellter
% create cha nnel
[H h_f]=create_cha nn el(Mt, Mr, A, N+GI);
% decompose each subcha nnel in the freque ncy doma in
[U S V] = svd_decompose_cha nn el(Mt, Mr, h_f, N);
% bitloadi ng
[bits_alloc,e nergy_alloc] = BitLoad(S,Btot,Mt*N,gap,sig2,M);
%en ergy_alloc=e nergy_alloc/(mea n(e nergy_alloc));
%e nergy_alloc=o nes(1,128);
for lTra ns = 1:Tra nsmitlter
% bits to tra nsmit
x = (ra ndn (1,Btot)>0);
% modulate
x_mod = modulate(x,bits_alloc,e nergy_alloc, s2,s4,s16,s64,s256);
% precode modulated sig nal x_pre = precode(Mt, x_mod, V, N);
% ifft, with cyclic p

OFDM-MATLAB仿真程序资料 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数8
  • 收藏数0 收藏
  • 顶次数0
  • 上传人dlmus1
  • 文件大小16 KB
  • 时间2020-11-07
最近更新