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

📄 dispusernotserved.m

📁 It s a simulation for WCDMA Radio Networks.
💻 M
字号:
%DISPUSERALL   DISPUSERALL creates and displays the not served user map, i.e. all users, 
%              which are in outage
%
%Inputs:  (global) mobilestation, basestation, numBSs, umMSs, xPos, yPos,
%         xmin, xmax, ymin, ymax, resolution
%Outputs:
%
%Authors: Achim Wacker (AWa), Kari Heiska (KHe), Jaana Laiho-Steffen (jls), 
%         Kai Heikkinen (KHeik)
%
%Revision: 5.0.0cd   Date: 17-Jul-2001
%
%needed m-files: BSplot.m

tmpLayer = [];
if numBStype1
   tmpLayer = [tmpLayer 1];
end
if numBStype2
   tmpLayer = [tmpLayer 2];
end

for layer = tmpLayer
   indNotServed = find([mobilestation.usedCarr]<=0);
   userNotServed = zeros(yPixels, xPixels);
   eval(['indMStypeX = find(([mobilestationOri.usedCarr] == ' num2str(layer) ') & ' ...
                           '([mobilestation.usedCarr]    <= 0));']);
   for m = indMStypeX
      userNotServed(yPos(m), xPos(m)) = userNotServed(yPos(m), xPos(m))+1;
   end

   totalUsers = sum(sum(userNotServed));
   userNotServed(~isnan(waterArea)) = NaN;
   
   figure
   set(gcf, 'Tag', 'tagUserFig');
   userColors = [1 1 1; 1 0 0; 0 1 0; 0 0 1; 1 1 0; 1 0 1; 0 1 1; 0.5 0.5 0.5];
   pcolor(xmin:resolution:xmax, ...
      ymin:resolution:ymax, ...
      userNotServed);
   caxis([0 8]);
   colormap(userColors);
   if numBStype1 == 0 | numBStype2 == 0
      layerString = [];
   else
      if mode == 1
         layerString = [' for carrier ' num2str(layer)];
      elseif mode == 2
         layerString = [' for operator ' num2str(layer)];
      end
   end
   titleText = ['USER DISTRIBUTION' layerString ' (not served) (total = ' num2str(totalUsers), ' users)'];
   title(['\it{', titleText, '}']);
   axis('equal');
   shading('flat');
   hcb = colorbar('vert');
   set(get(hcb, 'Title'), 'String', '# of users');
   tlabel = get(hcb, 'yticklabel');
   set(hcb, 'yticklabel', tlabel);
   set(hcb, 'Ytick', get(hcb, 'Ytick')+0.5);
   set(hcb, 'ticklength', [0 0]);
   BSplot(basestation, gcf, vectMap, lossData);
   clear userNotServed userColors tlabel hcb m totalUsers 
end

⌨️ 快捷键说明

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