📄 chap5.m
字号:
function fig = chap5()% 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 chap5h0 = figure('Units','points', ... 'Color',[0.8 0.8 0.8], ... 'Colormap',mat0, ... 'PointerShapeCData',mat1, ... 'Position',[129 52.5 555.75 443.25], ... 'Tag','Fig2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','chap5_func', ... 'ListboxTop',0, ... 'Position',[448.5 129 45 15], ... 'String','Simulate', ... 'Tag','Pushbutton1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[406.5 260.25 88.5 15], ... 'String',[' uniformly distributed ';' cell boundary '], ... 'Style','popupmenu', ... 'Tag','Mode', ... 'Value',2);h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'FontSize',10, ... 'ListboxTop',0, ... 'Position',[25.5 409.5 485 12.5], ... 'String','P5-14: Outage Probability Due to Random Cochannel Interference', ... 'Style','text', ... 'Tag','StaticText3');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[333 259.5 62.25 15], ... 'String','User location', ... 'Style','text', ... 'Tag','StaticText4');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[335.25 197.25 62.25 15], ... 'String','Graph Type', ... 'Style','text', ... 'Tag','StaticText4');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[339 171 167.25 15], ... 'String',['varying k for shadowing variance = 8 dB ';' varying shadowing variance for k = 4 '], ... 'Style','popupmenu', ... 'Tag','GraphType', ... 'Value',1);h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[25.5 340 485 66.75], ... 'String',mat2, ... 'Style','text', ... 'Tag','StaticText1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[25.5 320.5 485 33], ... 'String',mat3, ... 'Style','text', ... 'Tag','StaticText1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[25.5 287.5 485 33], ... 'String',mat4, ... 'Style','text', ... 'Tag','StaticText1');h1 = axes('Parent',h0, ... 'CameraUpVector',[0 1 0], ... 'CameraUpVectorMode','manual', ... 'Color',[1 1 1], ... 'ColorOrder',mat5, ... 'Position',[0.09716599190283401 0.1404399323181049 0.4642375168690958 0.4805414551607445], ... 'Tag','Axes1', ... 'XColor',[0 0 0], ... 'YColor',[0 0 0], ... 'ZColor',[0 0 0]);h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',[0.4985422740524781 -0.08480565371024729 9.160254037844386], ... 'Tag','Axes1Text4', ... 'VerticalAlignment','cap');set(get(h2,'Parent'),'XLabel',h2);h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',[-0.08454810495626822 0.4946996466431097 9.160254037844386], ... 'Rotation',90, ... 'Tag','Axes1Text3', ... 'VerticalAlignment','baseline');set(get(h2,'Parent'),'YLabel',h2);h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','right', ... 'Position',[-0.2128279883381924 1.787985865724382 9.160254037844386], ... 'Tag','Axes1Text2', ... 'Visible','off');set(get(h2,'Parent'),'ZLabel',h2);h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',mat6, ... 'Tag','Axes1Text1', ... 'VerticalAlignment','bottom');set(get(h2,'Parent'),'Title',h2);h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[334.5 229.5 62.25 15], ... 'String','Required S/I', ... 'Style','text', ... 'Tag','StaticText4');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[405.75 228.75 45 15], ... 'String','18', ... 'Style','edit', ... 'Tag','ReqSI');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[465 228 35.25 15], ... 'String','dB', ... 'Style','text', ... 'Tag','StaticText4');if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -