%
% 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
没有合适的资源?快使用搜索试试~ 我知道了~
simulation and software radio for mobile communication (matlab程序...
共91个文件
m:85个
txt:6个
5星 · 超过95%的资源 需积分: 29 45 下载量 66 浏览量
2010-12-20
23:07:21
上传
评论
收藏 92KB RAR 举报
温馨提示
simulation and software radio for mobile communication 移动通信、软件无线电仿真 matlab 程序
资源推荐
资源详情
资源评论
收起资源包目录
simulation and software radio for mobile communication---程序.rar (91个子文件)
simulation and software radio for mobile communication---程序
Chapter2
README-Chap2.txt 4KB
mvalue.m 370B
sefade.m 2KB
Chapter4
README-Chap4.txt 16KB
delay.m 741B
qpskdemod.m 723B
crdemapping.m 706B
ofdm_fading.m 5KB
giins.m 846B
ofdmda.m 5KB
sefade.m 2KB
ofdmce.m 5KB
qpskmod.m 914B
girem.m 777B
crmapping.m 739B
ofdmci.m 6KB
ofdm.m 3KB
comb.m 658B
fade.m 2KB
interwave.m 2KB
Chapter7
stationInit.m 438B
wrap.m 2KB
holdtime.m 278B
dcamain.m 9KB
antgain.m 604B
dist.m 328B
basest.m 1KB
README-Chap7.txt 6KB
main.m 6KB
shadow.m 272B
set_D.m 372B
cellmesh.m 1017B
Chapter3
gmsk.m 3KB
compconv.m 562B
gmsk_fading.m 5KB
delay.m 743B
bpsk.m 3KB
hrollfcoef.m 2KB
README-Chap3.txt 28KB
qam16.m 3KB
qpskdemod.m 723B
msk.m 3KB
oversamp2.m 507B
gaussf.m 1KB
oversamp.m 497B
bpsk_fading.m 4KB
msk_fading.m 5KB
compoversamp.m 684B
msk2_fading.m 5KB
qpsk.m 3KB
sefade.m 2KB
qammod.m 1KB
oqpsk_fading.m 5KB
qpskmod.m 914B
msk2.m 3KB
comb.m 658B
fade.m 2KB
qpsk_fading.m 5KB
qamdemod.m 2KB
oqpsk.m 3KB
qam16_fading.m 4KB
Chapter5
autocorr.m 624B
comb2.m 718B
compoversamp2.m 722B
delay.m 741B
hrollfcoef.m 2KB
despread.m 1013B
qpskdemod.m 723B
compconv2.m 663B
spread.m 1004B
sefade.m 2KB
goldseq.m 650B
qpskmod.m 914B
README-Chap5.txt 5KB
dscdma.m 6KB
fade.m 2KB
mseq.m 1KB
crosscorr.m 670B
shift.m 1KB
Chapter6
distance.m 702B
npcsma.m 3KB
theorys.m 1KB
README-Chap6.txt 4KB
inhibitsense.m 872B
snpisma.m 3KB
graph.m 4KB
saloha.m 2KB
paloha.m 2KB
main.m 6KB
carriersense.m 1KB
position.m 1KB
共 91 条
- 1
资源评论
- lishan_wh2013-09-04不错的资源,感谢分享,代码很全
- hellocate2012-05-14十分感谢 在学校图书馆找到该书但没代码。楼主的代码很完整,值得学习
- haiquancheng2012-12-31太好的资源.从第2章到第7章全的
- css52412014-09-01资源很全,代码和书后的完全一致,很好的资源!
jackylzh
- 粉丝: 22
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- js基础但是这个烂怂东西要求标题不能少于10个字才能上传然后我其实还没有写完之后再修订吧.md
- electron-tabs-master
- Unity3D 布朗运动算法插件 Brownian Motion
- 鼎微R16中控升级包R16-4.5.10-20170221及强制升级方法
- 鼎微R16中控升级包公版UI 2015及强制升级方法,救砖包
- 基于CSS与JavaScript的积分系统设计源码
- 生物化学作业_1_生物化学作业资料.pdf
- 基于libgdx引擎的Java开发连连看游戏设计源码
- 基于MobileNetV3的SSD目标检测算法PyTorch实现设计源码
- 基于Java JDK的全面框架设计源码学习项目
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功