crechanplan.m

来自「基于OFDM的无线宽带系统仿真It contains mainly two pa」· M 代码 · 共 27 行

M
27
字号
function obk=crechanplan(nb, nk, ncluster);% DESCRIPTION obk=crechanplan(nb,nk,ncluster)%  Makes a "frequency" plan with cluster size nb/ncluster.^2. %  The cells are numbered in the same way as in crecells. %  To get a correct symmetric frequency plan (nk*ncluster.^2)/nb %  has to evaluate into an integer.% INPUT %  nb --        Number of base stations.%  nk --        Number of channels in the system.%  ncluster --  Square root of clusters.% OUTPUT%  obk --       Binary matrix, bases by channels.%               obk(j,k)=1, if base j is an allocated channel.% TRY          %  spy(crechanplan(12,24,2))% SEE ALSO     %  crecellsnclu2 = ncluster.^2; % number of clusterscellpclust = ceil(nb/nclu2); % clustersize;obk = repmat(eye(cellpclust),[nclu2, ceil(nk/cellpclust)]);obk = obk(1:nb,1:nk); % Correct the size if                      % (nk*ncluster.^2)/nb was not an integer.

⌨️ 快捷键说明

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