📄 chap3.m
字号:
function fig = chap3()% 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 chap3h0 = figure('Units','points', ... 'Color',[0.8 0.8 0.8], ... 'Colormap',mat0, ... 'PointerShapeCData',mat1, ... 'Position',[165 67.5 501 411], ... 'Tag','Fig1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[64.5 372.75 400 15], ... 'String','P3-23 BER Performance of pi/4-DQPSK', ... 'Style','text', ... 'Tag','StaticText1');h1 = axes('Parent',h0, ... 'CameraUpVector',[0 1 0], ... 'CameraUpVectorMode','manual', ... 'Color',[1 1 1], ... 'ColorOrder',mat2, ... 'Position',[0.1227544910179641 0.1624087591240876 0.4520958083832335 0.4963503649635037], ... '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.4983388704318937 -0.08856088560885622 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.09634551495016613 0.4944649446494465 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',mat3, ... 'Tag','Axes1Text2', ... 'Visible','off');set(get(h2,'Parent'),'ZLabel',h2);h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',[0.4983388704318937 1.025830258302583 9.160254037844386], ... 'Tag','Axes1Text1', ... 'VerticalAlignment','bottom');set(get(h2,'Parent'),'Title',h2);h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[366 219.75 24.75 15], ... 'String','0', ... 'Style','edit', ... 'Tag','min');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[304.5 215.25 51 21.75], ... 'String','SNR/bit Range', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'FontSize',12, ... 'ListboxTop',0, ... 'Position',[417 219.75 13.5 14.25], ... 'String','-', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[433.5 219.75 23.25 15], ... 'String','40', ... 'Style','edit', ... 'Tag','max');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[306.75 184.5 47.25 21.75], ... 'String','Number of points', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[365.25 184.5 45 15], ... 'String','9', ... 'Style','edit', ... 'Tag','Npass');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[391.5 219 24.75 15], ... 'String','dB', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[459.75 219 24.75 15], ... 'String','dB', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[364.5 158.25 45 15], ... 'String','0.001', ... 'Style','edit', ... 'Tag','VmTs1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[306.75 159 45 15], ... 'String','VmTs1', ... 'Style','text', ... 'Tag','StaticText4');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[364.5 133.5 45 15], ... 'String','0.01', ... 'Style','edit', ... 'Tag','VmTs2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[306.75 134.25 45 15], ... 'String','VmTs2', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[363.75 108 45 15], ... 'String','0.1', ... 'Style','edit', ... 'Tag','VmTs3');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[306.75 30 165.5 22.5], ... 'String','Note: this simulation may take minutes, depending on the number of samples.', ... 'Style','text', ... 'Tag','StaticText5');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[306 108.75 45 15], ... 'String','VmTs3', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','chap3_func', ... 'ListboxTop',0, ... 'Position',[363.75 73.5 45 15], ... 'String','Simulate', ... 'Tag','Pushbutton1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[64.5 309 400 57], ... 'String',mat4, ... 'Style','text', ... 'Tag','StaticText3');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[364.5 249 45 15], ... 'String','10000', ... 'Style','edit', ... 'Tag','N');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ... 'ListboxTop',0, ... 'Position',[307.5 250.5 47.25 21.75], ... 'String','Number of samples', ... 'Style','text', ... 'Tag','StaticText2');if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -