simulation of wireless communication
ofdm cdma QPSK qam mac 

所属分类:通讯编程
开发工具:matlab
文件大小:88KB
下载次数:1213
上传日期:2006-01-17 14:39:31
上 传 者redfox80
说明:  书"Simulation and software radio for mobile communications"的源代码matlab版,从基本的bpsk,qpsk,qam到实际的ofdm系统,cdma链路,mac层仿真分析,可以全面的了解通信系统。
("Simulation and software radio for mobil e communications "source code version of Matlab, from basic BPSK. QPSK, QAM OFDM to the actual system, cdma Chains, mac-simulation analysis, a comprehensive understanding of communications systems.)

文件列表:
tn929.5-h254\Chapter6\carriersense.m (1091, 2001-11-29)
tn929.5-h254\Chapter6\distance.m (702, 2001-11-29)
tn929.5-h254\Chapter6\graph.m (4320, 2001-11-29)
tn929.5-h254\Chapter6\inhibitsense.m (872, 2001-11-29)
tn929.5-h254\Chapter6\main.m (6140, 2001-11-29)
tn929.5-h254\Chapter6\npcsma.m (2724, 2001-11-29)
tn929.5-h254\Chapter6\paloha.m (2199, 2001-11-29)
tn929.5-h254\Chapter6\position.m (1446, 2001-11-29)
tn929.5-h254\Chapter6\saloha.m (2398, 2001-11-29)
tn929.5-h254\Chapter6\snpisma.m (3416, 2001-11-29)
tn929.5-h254\Chapter6\theorys.m (1112, 2001-11-29)
tn929.5-h254\Chapter6 (0, 2005-09-28)
tn929.5-h254\Chapter7\antgain.m (604, 2001-11-29)
tn929.5-h254\Chapter7\basest.m (1274, 2001-11-29)
tn929.5-h254\Chapter7\cellmesh.m (1017, 2001-11-30)
tn929.5-h254\Chapter7\dcamain.m (9520, 2001-11-25)
tn929.5-h254\Chapter7\dist.m (328, 2001-11-29)
tn929.5-h254\Chapter7\holdtime.m (278, 2001-11-29)
tn929.5-h254\Chapter7\main.m (5873, 2001-11-29)
tn929.5-h254\Chapter7\set_D.m (372, 2001-11-29)
tn929.5-h254\Chapter7\shadow.m (272, 2001-11-29)
tn929.5-h254\Chapter7\stationInit.m (438, 2001-11-29)
tn929.5-h254\Chapter7\wrap.m (1724, 2001-11-29)
tn929.5-h254\Chapter7 (0, 2005-09-28)
tn929.5-h254\Chapter2\bpskev.m (3634, 2001-11-30)
tn929.5-h254\Chapter2\comb.m (658, 2001-11-26)
tn929.5-h254\Chapter2\delay.m (741, 2001-11-26)
tn929.5-h254\Chapter2\disper.m (671, 2001-11-26)
tn929.5-h254\Chapter2\fade.m (2166, 2001-11-30)
tn929.5-h254\Chapter2\main.m (410, 2001-11-26)
tn929.5-h254\Chapter2\mvalue.m (370, 2001-11-26)
tn929.5-h254\Chapter2\sefade.m (1742, 2001-11-27)
tn929.5-h254\Chapter2 (0, 2005-09-28)
tn929.5-h254\Chapter3\bpsk.m (2753, 2001-11-30)
tn929.5-h254\Chapter3\bpsk_fading.m (4484, 2001-11-30)
tn929.5-h254\Chapter3\comb.m (658, 2001-11-26)
tn929.5-h254\Chapter3\compconv.m (562, 2001-11-30)
... ...

% % README Chapter 6 % % 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 eleven files. The relationship between file name and the number of program written in the book is shown in as follows. Program6-1 main.m Program6-2 positon.m Program6-3 distance.m Program6-4 theorys.m Program6-5 graph.m Program6-6 paloha.m Program6-7 saloha.m Program6-8 npcsma.m Program6-9 carriersense.m Program6-10 snpisma.m Program6-11 inhibitsense.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/chapter6, you only type the following command. >>cd /matlabR12/work/chapter6 As for chapter6, we have a main function: main.m. By using only one main program, we can simulate four protocols, pure ALOHA, slotted ALOHA, non-persistent CSMA, and slotted non-persistent ISMA. The following is a procedure to perform these simulations. (1) Set parameters First of all, we set simulation parameters in "main.m". (a) Bit rate (bps) brate = 512e3; (b) Symbol rate [sps] Srate = 256e3; (c) Packet Length [symbols] Plen = 128; (d) Normalized transmission delay Dtime = 0.01; (e) Attenuation constant for propagation loss alfa = 3; (f) Standard deviation for shadowing sigma = 6; (g) Radius of cellular zone [m] r = 100; (h) The position of access point (x,y,z)[m] bxy = [0, 0, 5]; (i) Capture ratio for capture effect[dB] tcn = 10; (j) Number of access terminals Mnum = 100; (k) Carrier to noise power ratio of the transmitter of the access terminal, but mcn is defined as C/N [dB] at the access point when a packet that was transmitted from end of cellular zone suffered only propagation loss. mcn = 30; (l) Access protocol (1-pure ALOHA, 2-slotted ALOHA, 3-non-persistent CSMA, 4-non-persistent slotted ISMA) pno = 1; (m) Do you include the capture effect or not? (0-No, 1- Yes) capture = 0; (n) The maximum number of packets that can successfully transmitted to the access point, this number is one of index to terminate simulation spend = 10000; (o) Output file name to store the simulation results outfile = 'test.dat'; (p) Offered traffic for G=[0.1:0.1:1,1.2:0.2:2] (2) Type just the following command >> main (3) Then, you can find the following progress report on your command window. (It takes several ten minutes...) (Example) ********* Simulation Start ********* paloha without capture effect G=0.101247 S=0.082678 TS=0.082688 G=0.1***852 S=0.134278 TS=0.133601 G=0.299714 S=0.163948 TS=0.1***581 G=0.400204 S=0.180891 TS=0.179750 G=0.500014 S=0.184636 TS=0.183940 G=0.600109 S=0.183694 TS=0.180710 G=0.692799 S=0.175184 TS=0.173320 G=0.793340 S=0.162029 TS=0.162320 G=0.893***3 S=0.150839 TS=0.149608 G=0.999630 S=0.136660 TS=0.135385 G=1.185882 S=0.112490 TS=0.110662 G=1.385606 S=0.085676 TS=0.086720 G=1.591802 S=0.065746 TS=0.065958 G=1.784259 S=0.049095 TS=0.050312 G=1.***33*** S=0.036744 TS=0.037554 ********** Simulation End ********** where G is a given offered traffic, S is a simulated value of the throughput, and TS is theoretical value of the throughput when G is assumed as the given offered traffic. (4) After finishing the simulation, we can find the relationships between offered traffic and throughput and between offered traffic and averaged transmission delay time on the figures automatically. (5) All of simulation results are stored in the file that was decided by the variable "outfile". When outfile = 'test.dat' and we can see the simulation results, we just type the following command. >> graph test.dat ********** end of file **********

近期下载者

相关文件


收藏者