资源简介
是程序员开发网上的蜂窝小区建模的MATLAB程序 经过本人的补充,完整而成 跑起来没问题 还有参考教材 都是不容易才下到的 绝对值这个分数
代码片段和文件信息
% File: c17_cellularsetup.m
% Software given here is to accompany the textbook: W.H. Tranter
% K.S. Shanmugan T.S. Rappaport and K.S. Kosbar Principles of
% Communication Systems Simulation with Wireless Applications
% Prentice Hall PTR 2004.
%
% ===== Pre-defined parameters =========================================
r_cell = 1000; % cell radius (in meters)
n_co_ch_users = 6; % number of co-channel users
P_BS = 0; % BS transmitter power (in dBW)
P_MS = 0; % MS transmitter power (in dBW)
corr_fwd = 0.0; % correlation coefficient - forward link
corr_rev = 0.0; % correlation coefficient - reverse link
K = 1; % constant in the link equation
in_beam = 0; % maximum gain of the sectorized antennas (in dB)
% --- Limits (angles) of each sector ---
sector_min = zeros(63);
sector_max = zeros(63);
sector_min(:1) = (pi/3)*[-3:2]‘;
sector_min([1:3]2) = pi/3*[-3 -1 1]‘;
sector_min(13) = -pi;
sector_max(:1) = sector_min(:1) + pi/3;
sector_max([1:3]2) = sector_min([1:3]2) + 2*pi/3;
sector_max(13) = pi;
%
% --- Center of each sector ----
%
phi_center = zeros(63);
phi_center(:1) = (pi/3)*[-3:2]‘;
phi_center([1:3]2) = (pi/3)*[-3 -1 1]‘;
%
% --- Beamwidth of each sector ---
%
phi_BW = [1 2 6]*pi/3;
%
% --- Number of sectors -----
%
num_sectors = [6 3 1];
%
% ===== User Inputs =========================================
%
num_snapshots = input(‘Number of snapshots = ‘);
cluster_size = input(‘Cluster size (3 4 or 7) = ‘);
n_path = input(‘Path loss exponent = ‘);
sigma_int = input(‘Shadowing std deviation - interference (dB) = ‘);
sigma_S = input(‘Shadowing std deviation - desired signal (dB) = ‘);
sec = input(‘Sectorization (1=>60-sectoring 2=>120-sectoring 3=>omni). enter ---> ‘);
ftb = input(‘Front-to-back ratio of the BS antennas (dB) = ‘);
out_beam = in_beam - ftb;
SIR_target_lower=input(‘the lower value of the target SIR_target (dB)= ‘);
SIR_target_upper=input(‘the upper value of the target SIR_target (dB)= ‘);
% End of script file.
P_fwd_average_outage=zeros(41);
P_rev_average_outage=zeros(41);
P_fwd_outage_A=zeros(41);
P_rev_outage_A=zeros(41);
P_fwd_outage_B=zeros(41);
P_rev_outage_B=zeros(41);
for SIR_target=SIR_target_lower:SIR_target_upper
P_fwd_outage=0;
P_rev_outage=0;
Num_A_fwd=0;
Num_A_rev=0;
Num_B_fwd=0;
Num_B_rev=0;
for i=1:num_snapshots
%location of base stations (center cell is located at x=0y=0)
%Location (angular) of the center cell of each cluster in the first tier
theta_N=[pi/6 0 pi/6 asin(1/(2*sqrt(7)))];
aux_1=[1 0 2 3 0 0 4];
theta=pi/3*[0:5]‘;
ind=aux_1(cluster_size);
%Location [xy] of the center cells of all clusters in the first tier
bs_position=[sqrt(3*cluster_size)*r_cell*cos(theta+theta_N(ind)) sqrt(3*cluster_size)*r_cell*sin(theta+theta_N(ind))];
%Determination of the sector to simulated in this snapshot(˲̬ͼ)
%--------Select(randomly)a sector-------
sector=unidrnd(num_secto
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7077661 2009-09-17 09:14 Prentice Hall - Principles of Communication System Simulation with Wireless Aplications.pdf
文件 1237 2009-09-17 10:26 c17_erlangb\c17_erlangb.m
文件 250 2009-09-22 10:34 c17_erlangb\erlang_b.m
文件 250 2009-09-17 12:28 c17_erlangb\erlang_b.asv
文件 165 2009-09-17 10:44 c17_erlangb\test.m
文件 7539 2009-09-23 15:08 c17_erlangb\ALL.m
文件 943 2009-09-18 10:12 c17_erlangb\wilkinson.m
目录 0 2009-09-17 10:29 c17_erlangb
----------- --------- ---------- ----- ----
7088045 8
- 上一篇:msk调制与gmsk调制
- 下一篇:数字图像处理(MATLAB版)
相关资源
- 数字图像处理(MATLAB版)
- matlab指纹匹配
- LDA代码实现Matlab版
- LSD直线检测opencv+matlab
- 基于MATLAB的圆形阵列天线的仿真研究
- 利用Matlab仿真平台设计单闭环直流调
- 基于matlab的数字识别实现完整程序
- matlab识别10个数字程序
- 基于Matlab的燃油炉温度仿真系统的设
- kriging工具箱matlab
- MATLAB在数字信号处理中的应用清华大
- BLDC PMSM 等电机的matlab 仿真
- 基于MATLAB的图像处理的课程设计论文
- 《MATLAB R2016a智能计算25个案例分析》
- 《MATLAB数学建模》清华大学出版社 李
- 《MATLAB GUI程序设计》代码
- 《Matlab语音信号分析与合成》第2版程
- Matlab实现无线传感器网络节点定位的
- 基于BP神经网络的水上交通事故预测及
- 遥感图像变化检测MATLAB GUI实现
- Matlab实现softmax分类
- MATLAB数字识别仿真
- PM模型代码Matlab
- 粒子滤波完整仿真matlab代码
- MATLAB运动模糊图像复原
- zw_construct04-691593-_matlab_box.zip
- 基于matlab的数字识别实现算法简洁易
- 飞轮储能系统MATLAB仿真
- 基于pca的图像压缩与重建代码
- zw_MATLAB版源代码.zip
评论
共有 条评论