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

📄 chap8.m

📁 《Wireless Communications and Networking》(《无线通信和网络》)配套MATLAB源码。该书涵盖了第一、二、和三代蜂窝通信系统从物理层到网络层的关键特性。
💻 M
字号:
function fig = chap8()% This is the machine-generated representation of a Handle Graphics object% and its children.  Note that handle values may change when these objects% are re-created. This may cause problems with any callbacks written to% depend on the value of the handle at the time the object was saved.%% To reopen this object, just type the name of the M-file at the MATLAB% prompt. The M-file and its associated MAT-file must be on your path.load chap8h0 = figure('Units','points', ...	'Color',[0.8 0.8 0.8], ...	'Colormap',mat0, ...	'PointerShapeCData',mat1, ...	'Position',[203.25 87 495.75 367.5], ...	'Tag','Fig1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[122.25 188.25 45 15], ...	'String','3.5', ...	'Style','edit', ...	'Tag','alpha');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'HorizontalAlignment','left', ...	'ListboxTop',0, ...	'Position',[35 237 440 97.5], ...	'String',mat2, ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[58.5 189.75 45 15], ...	'String','alpha', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[60 161.25 45 15], ...	'String','gamma', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[122.25 162.75 45 15], ...	'String','5', ...	'Style','edit', ...	'Tag','gamma');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[202.5 186.75 45 15], ...	'String','Psame', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[265.5 186 45 15], ...	'String','0.5', ...	'Style','edit', ...	'Tag','Psame');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[266.25 159.75 45 15], ...	'String','0.1', ...	'Style','edit', ...	'Tag','Pback');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[205.5 160.5 45 15], ...	'String','Pback', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'Callback','chap8_func', ...	'ListboxTop',0, ...	'Position',[122.25 134.25 45 15], ...	'String','simulate', ...	'Tag','Pushbutton1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[40.5 208.5 87.75 15], ...	'String','Input parameters:', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[36 106.5 87.75 15], ...	'String','Probabilities:', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[63 81 45 15], ...	'String','Sa', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[63.75 57.75 45 15], ...	'String','Sb', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[216 81 45 15], ...	'String','Sc', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[215.25 57 45 12], ...	'String','Sout', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[123 81 45 15], ...	'String','-', ...	'Style','edit', ...	'Tag','Sa');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[122.25 58.5 45 15], ...	'String','-', ...	'Style','edit', ...	'Tag','Sb');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[274.5 81 45 15], ...	'String','-', ...	'Style','edit', ...	'Tag','Sc');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[274.5 57 45 15], ...	'String','-', ...	'Style','edit', ...	'Tag','Sout');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'FontSize',10, ...	'ListboxTop',0, ...	'Position',[35 342 440 15], ...	'String','P8-19: Probability Distribution of Mobile Location', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...	'ListboxTop',0, ...	'Position',[341.25 180.75 45.75 30], ...	'String','Number of Mobile Users', ...	'Style','text', ...	'Tag','StaticText1');h1 = uicontrol('Parent',h0, ...	'Units','points', ...	'BackgroundColor',[1 1 1], ...	'ListboxTop',0, ...	'Position',[403.5 185.25 45 15], ...	'String','1000', ...	'Style','edit', ...	'Tag','N');if nargout > 0, fig = h0; end

⌨️ 快捷键说明

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