%
% README Chapter 3
%
% by Hiroshi Harada
%
% If you have any bugs and questions in our simulation programs, please e-mail
% to harada@ieee.org. We try to do our best to answer your questions.
%
In this directory, we can find the twenty-eight files. The relationship between file name and the number of program written in the book is shown in as follows.
Program3-1 bpsk.m
Program3-2 bpsk_fading.m
Program3-3 hrollfcoef.m
Program3-4 oversamp.m
Program3-5 qpsk.m
Program3-6 qpsk_fading.m
Program3-7 compconv.m
Program3-8 compoversamp.m
Program3-9 qpskmod.m
Program3-10 qpskdemod.m
Program3-11 oqpsk.m
Program3-12 oqpsk_fading.m
Program3-13 msk.m
Program3-14 msk_fading.m
Program3-15 msk2.m
Program3-16 msk2_fading.m
Program3-17 oversamp2.m
Program3-18 gmsk.m
Program3-19 gmsk_fading.m
Program3-20 gaussf.m
Program3-21 qam16.m
Program3-22 qam16_fading.m
Program3-23 qammod.m
Program3-24 qamdemod.m
Program2-4 comb.m
Program2-5 fade.m
Program2-6 sefade.m
Program2-7 delay.m
If you would like to try to use the above programs by using MATLAB.First of all, please copy all of files to your created adequate directory. Then, you start to run MATLAB and you can see the following command prompt in the command window.
>>
Next, you can go to the directory that have all of programs in this section by using change directory (cd) command. If you copy all of files to /matlabR12/work/chapter3, you only type the following command.
>> cd /matlabR12/work/chapter3
In this directory, we can find fourteen main functions, bpsk.m, bpsk_fading.m, qpsk.m, qpsk_fading.m, oqpsk.m, oqpsk_fading.m, msk.m, msk_fading.m, msk2.m, msk2_fading.m, gmsk.m, gmsk_fading.m, qam16.m and qam16_fading.m
#########################################################
(1) Simulation of "bpsk.m"
#########################################################
This program simulates the transmission performance of BPSK under Additive White Gausian Noise (AWGN) environment.
(a) Set paremeters
First of all, we set simulation parameters in "bpsk.m".
%******************** Preparation part **********************
sr=256000.0; % Symbol rate 256 ksymbol/s
ml=1; % Number of modulation levels
br=sr.*ml; % Bit rate (=symbol rate in this case)
nd = 1000; % Number of symbols that simulates in each loop
ebn0=3; % Eb/N0
IPOINT=8; % Number of oversamples
%******************** START CALCULATION *********************
nloop=100; % Number of simulation loops
(b) Type just the following command
>> clear
>> bpsk
(c) Then, you can see the following simulation result on your command window.
(example)
3 2275 100000 2.275000e-002
where first number 3 is Eb/No, second number 2275 is the number of error data, third number 100000 is the number of transmitted data, and fourth number 2.275000e-002 is bit error rate (BER) performance. And, the simulation result is stored in the file (BERbpsk.dat).
#########################################################
(2) Simulation of "bpsk_fading.m"
#########################################################
This program simulates the transmission performance of BPSK under Rayleigh fading environment.
(a) Set paremeters
First of all, we set simulation parameters in "bpsk_fading.m".
%******************** Preparation part **********************
sr=256000.0; % Symbol rate 256 ksymbol/s
ml=1; % Number of modulation levels
br=sr.*ml; % Bit rate (=symbol rate in this case)
nd = 100; % Number of symbols that simulates in each loop
ebn0=10; % Eb/N0
IPOINT=8; % Number of oversamples
%******************* Fading initialization ********************
% If you use fading function "sefade", you can initialize all of parameters.
% Otherwise you can comment out the following initialization.
% The detailed explanation of all of valiables are mentioned in Program 2-8.
% Time resolution
tstp=1/sr/IPOINT;
% Arrival time for each multipath normalized by tstp
% If you would like to simulate under one path fading model, you have only to set
% direct wave.
itau = [0];
% Mean power for each multipath normalized by direct wave.
% If you would like to simulate under one path fading model, you have only to set
% direct wave.
dlvl = [0];
% Number of waves to generate fading for each multipath.
% In normal case, more than six waves are needed to generate Rayleigh fading
n0=[6];
% Initial Phase of delayed wave
% In this simulation four-path Rayleigh fading are considered.
th1=[0.0];
% Number of fading counter to skip
itnd0=nd*IPOINT*100;
% Initial value of fading counter
% In this simulation one-path Rayleigh fading are considered.
% Therefore one fading counter are needed.
itnd1=[1000];
% Number of directwave + Number of delayed wave
% In this simulation one-path Rayleigh fading are considered
now1=1;
% Maximum Doppler frequency [Hz]
% You can insert your favorite value
fd=160;
% You can decide two mode to simulate fading by changing the variable flat
% flat : flat fading or not
% (1->flat (only amplitude is fluctuated),0->nomal(phase and amplitude are fluctutated)
flat =1;
%******************** START CALCULATION *********************
nloop=1000; % Number of simulation loops
(b) Type just the following command
>> clear
>> bpsk_fading
(c) Then, you can see the following simulation result on your command window.
(example)
10 2143 100000 2.143000e-002
The meaning of each value is the same of the result from "bpsk.m".
The simulation result is stored in the file (BERbpskfad.dat).
#########################################################
(3) Simulation of "qpsk.m"
#########################################################
This program simulates the transmission performance of QPSK under Additive White Gausian Noise (AWGN) environment.
(a) Set paremeters
First of all, we set simulation parameters in "qpsk.m".
%******************** Preparation part **********************
sr=256000.0; % Symbol rate 256 ksymbol/s
ml=2; % Number of modulation levels
br=sr.*ml; % Bit rate (=symbol rate in this case)
nd = 1000; % Number of symbols that simulates in each loop
ebn0=3; % Eb/N0
IPOINT=8; % Number of oversamples
%******************** START CALCULATION *********************
nloop=100; % Number of simulation loops
(b) Type just the following command
>> clear
>> qpsk
(c) Then, you can see the following simulation result on your command window.
(example)
3 4475 200000 2.237500e-002
The meaning of each value is the same of the result from "bpsk.m".
The simulation result is stored in the file (BERqpsk.dat).
#########################################################
(4) Simulation of "qpsk_fading.m"
#########################################################
This program simulates the transmission performance of QPSK under Rayleigh fading environment.
(a) Set paremeters
First of all, we set simulation parameters in "qpsk_fading.m".
%******************** Preparation part **********************
sr=256000.0; % Symbol rate 256 ksymbol/s
ml=2; % Number of modulation levels
br=sr.*ml; % Bit rate (=symbol rate in this case)
nd = 1000; % Number of symbols that simulates in each loop
ebn0=10; % Eb/N0
IPOINT=8; % Number of oversamples
%******************* Fading initialization ********************
% If you use fading function "sefade", you can initialize all of parameters.
% Otherwise you can comment out the following initialization.
% The detailed explanation of all of valiables are mentioned in Program 2-8.
% Time resolution
tstp=1/sr/IPOINT;
% Arrival time for each multipath normalized by tstp
% If you would like to simulate under one path fading model, you have only to set
% direct wave.
itau = [0];
% Mean power for each multipath normalized by direct
jfmjtfwmtc
- 粉丝: 0
- 资源: 2
最新资源
- 信息安全与加密技术基础教程
- 五相电机svpwm控制Matlab仿真
- 模块化多电平流器MMC-HVDC,PSCAD仿真 21电平,内附说明文档 需要PSCAD安装包的可以提供4.6.2版本,含安装教程
- 项目源码管理与协作基础教程
- 光伏+电池协调控制,平滑输出的相关simulink MATLAB仿真模型 光伏+电池并网控制等仿真模型 光伏给电池优化的充电控制器建模 三种工作模式: 1.光伏给电池充电给负载供电 2.负载增大
- comso多层膜石墨烯传感
- 微信小程序开发入门基础教程
- comsol岩石压裂损失模型,附带视频和原模型
- 三相电压源逆变器模型预测电流控制 滑膜扰动观测器 电流环无模型滑模控制smo
- 光伏储能并网VSG同步机一次调频matlab simulink,可分析不同惯量J,不同阻尼D对系统频率的影响 光伏直流侧并入电池储能,通过逆变器连接交流电网,逆变器采用VSG同步机控制〔也可替成风光
- MATLAB仿真 基于IEEE33潮流计算的加入风光储能主动配电网优化 采用IEEE33节点配电网进行仿真,搭建了含风光,储能,柴油发电机和燃气轮机的配电网经济调度模型,程序内带有风电、光伏和储能的潮
- 基于yolov5的钢板表面缺陷检测(包含源码和数据集以及训练好的权重文件) 夹杂、划痕、压入氧化皮、裂纹、麻点、斑块6种缺陷
- 五电平无刷直流电机BLDC矢量控制仿真模型,给定转速1000r min,运行良好; 三电平,两电平均可做,可调参数; matlab simulink模型
- 电力系统励磁涌流有关的问题分析 可以通过MATLAB中m文件便编写产生励磁涌流,也可以通过simulink仿真出励磁涌流 可以仿真分析影响励磁涌流的因素,以及抑制励磁涌流的措施 可以研究识别励磁
- MCGS仿真画圆程序,通过输入圆的半径即可仿真模拟画出圆的轨迹 可画多个圆 并显示当前X轴和Y轴实时位置和圆的角度,可随时清除重新画
- 高仿正浩创新图腾柱PFC抖频技术,逃逸检测窗,实际应用确实大幅度提高EMC通过率
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈