资源简介
% This program simulates the bit-error-rate (BER) performance of OSTBC
% with L=4 antennas over the frequency flat Rayleigh block fading channel
% The code is developed for real orthogonal design, code rate 1/2;
% modulation- 16 QAM with gray coding resulting in 2 bits/sec/Hz.
代码片段和文件信息
% This program simulates the bit-error-rate (BER) performance of OSTBC
% with L=4 antennas over the frequency flat Rayleigh block fading channel
% The code is developed for real orthogonal design code rate 1/2;
% modulation- 16 QAM with gray coding resulting in 2 bits/sec/Hz.
% by Samat Shabdanov February 2007 e-mail:shabdanov@yahoo.com
%16 QAM constellation
x=[-3 -3 -3 -3 -1 -1 -1 -1 3 3 3 3 1 1 1 1 ];
y=[3 1 -3 -1 3 1 -3 -1 3 1 -3 -1 3 1 -3 -1 ];
Qam=x+y*i;
Es=10; %average constellation energy for d=2;
index=1;
%set SNR step
step=4;
% SNR range is here
for SNR=4:step:20
%number of bit errors set to zero
count=0;
%number of iterations
N=10^4;
if SNR==20 N=3*10^4; end; % increase for higher SNR
for it=1:N
%generate 16 bits uniformly distributed
A=round(rand(116));
% TX symbols
s1=Qam(bi2de(A(1:4)‘left-msb‘)+1);
s2=Qam(bi2de(A(5:8)‘left-msb‘)+1);
s3=Qam(bi2de(A(9:12)‘left-msb‘)+1);
s4=Qam(bi2de(A(13:16)‘left-ms
- 上一篇:gold序列MATLAB仿真
- 下一篇:svm一对一分类
相关资源
- gold序列MATLAB仿真
- PUMA560机器人仿真系统
- matlab等价类程序
- Matlab贝叶斯分类器 (Bayers)程序
-
HFSS-MATLAB-sc
riptING-API - ICP算法matlab程序
- 自适应均衡技术的研究及MATLAB的仿真
- 2014 Matlab免安装版
- matlab遗传算法geneticbx工具箱和安装步
- 用MATLAB求解微分方程及微分方程组
- DSSS直接序列扩频通信系统仿真Matlab程
- Multi_frequency_heterodyne_phase_solution.rar
- PSO工具箱
- 遗传优化算法,matlab实现程序,有详
- 粒子群优化算法,matlab实现程序,有
- 精密单点定位的Matlab code
- matlab实现的等间隔量化的HSV颜色特征
- 灰度图像的二维Otsu自动阈值分割法
- 帧内预测matlab程序
- flapping,UVLM,matlab code
- l1-magic工具箱代码
- matlab 数据集 banana
- 放大器模型的matlab仿真实现
- matlab巴特沃斯滤波器m代码
- matlab通信工具箱教程
- matlab2011a种子
- idma 的程序,用matlab实现的idma的系统
- RFID系统MATLAB仿真
- 小游戏贪吃蛇的matlab编程
- CSMA/CA协议matlab代码模拟仿真
评论
共有 条评论