资源简介
DCO_OFDM程序代码,内有QAM调制,对DCO_OFDM的模型有个基础的了解
代码片段和文件信息
%% ---------------------- DCO-OFDM --------------------- %%
%% ************************** transmitter *****************************
%% --------------- to produce the bits stream -----------------
clear all;
clc;
% QAM modulation order
M = 4;
% initial number of carrier before Hermitian symmetry
para=64;
% number of bits transmitted
no_of_bits = log2(M)*para*1000;
% to produce the transmitted bits stream
seridata = randint(1no_of_bits);
%% --------------- QAM modulation ---------------
% transfer the bits from binary to decimal
x = bi2de(reshape(seridatalog2(M)no_of_bits/log2(M))‘‘left-msb‘); % 二进制转换成十进制
% QAM modulation using the function provided by matlab
h = modem.qammod(‘M‘M ‘SymbolOrder‘ ‘Gray‘); % QAM调制
xk = modulate(hx);
%% -------------- calculate BER for every SNR (dB) ---------------
% % Eb/N0from 0dB to 30dB
ebn0 = [0:1:35];
for k = 1:1:length(ebn0)
% initial number of error bits
noe = 0;
% initial number of bits transmitted
nod = 0;
% reshape the symbol according to the number of symbol per column
xk0=reshape(xk1no_of_bits/log2(M));
xk1 = reshape(xk0parano_of_bits/log2(M)/para);
%% ---------------- carrier setting ------------------
% Hermitian symmetry
yk=flipud(xk1); % 上下翻转
wk=conj(yk); % 共轭
% w=x‘
ze = zeros(1no_of_bits/log2(M)/para);
zk=[ze
xk1
wk];
% number of carrier for every DCO-OFDM symbol
N=2*para+1;
%% ------------------ IFFT -----------------
- 上一篇:ART算法代码程序
- 下一篇:MATLAB实现人眼定位程序
相关资源
- Pattern Recognition and Machine Learning(高清
- MATLAB 编程 第二版 Stephen J. Chapman 著
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- HDB3码、AMI码的MATLAB实现
- 3点GPS定位MATLAB仿真
- MATLAB数字信号处理85个实用案例精讲入
- matlab从入门到精通pdf94795
- 欧拉放大论文及matlab代码
- 跳一跳辅助_matlab版本
- 全面详解LTE MATLAB建模、仿真与实现
- MIMO-OFDM无线通信技术及MATLAB实现_孙锴
- MATLAB Programming for Engineers 4th - Chapman
- matlab 各种谱分析对比
- 分数阶chen混沌matlab程序
- 基于粒子群算法的非合作博弈的matl
- MATLAB车流仿真 包括跟驰、延误
- matlab空间桁架计算程序
- 基于MATLAB的图像特征点匹配和筛选
- DMA-TVP-FAVAR
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- newmark法源程序
- 传统关联成像、计算鬼成像matlab
- pri传统分选算法
- 摆动滚子推杆盘形凸轮设计
- 医学图像重建作业matlab源码
- Matlab实现混沌系统的控制
- 检测疲劳驾驶
- Matlab锁相环仿真-Phase Locked Loop.rar
评论
共有 条评论