⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 randms.m

📁 This program shows the distributions of the co-channel interference in forward and reverse link in t
💻 M
字号:
% This function is to get random distribution of Mobile Subscribers in a cellular
% Cellulars are hexagonal and the length of fringe is 1

function [MSPos] = RandMS(m,n)

x = sqrt(3)*rand(m,n)/2;
y = 3*rand(m,n)/2;
CellEdge = sin(30/180*pi);
k = y./x;

z = find(k<CellEdge);
x(z) = x(z)-sqrt(3)/2;
y(z) = y(z)+1.5;
y = y-1;
p = ones(m/2,n);
q = [p*(-1);p];
x = x.*q;
%y = y.*q;

MSPos = x+j*y;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -