?? chap2.m
字號:
function fig = chap2()% 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 chap2h0 = figure('Color',[0.8 0.8 0.8], ... 'Colormap',mat0, ... 'PointerShapeCData',mat1, ... 'Position',[235 190 634 478], ... 'Tag','Fig1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[379.5 227 45 15], ... 'String','900', ... 'Style','edit', ... 'Tag','fc');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[320 220 50.75 25], ... 'String','Carrier Frequency', ... 'Style','text', ... 'Tag','text1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[320 162.5 50.75 22.5], ... 'String','Number of Samples', ... 'Style','text', ... 'Tag','text2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[379.5 164.25 45 15], ... 'String','1000', ... 'Style','edit', ... 'Tag','N');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[78.75 315 301.5 22.5], ... 'String',mat2, ... 'Style','text', ... 'Tag','StaticText3');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[78.75 353.25 303 15], ... 'String','P2-24: Flat Rayleigh Fading Channel Simulator', ... 'Style','text', ... 'Tag','StaticText3');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[320 122.25 120 15], ... 'String','Choose one of the following:', ... 'Style','text', ... 'Tag','StaticText1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[320 99.75 117 13.5], ... 'String',['Amplitude ';'Amplitude Pdf ';'Phase ';'Phase Pdf ';'LCR ';'AFD ';'Amplitude Correlation'], ... 'Style','popupmenu', ... 'Tag','GraphType', ... 'Value',2);h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','Plot_Graph AFD', ... 'ListboxTop',0, ... 'Position',[369.75 68.25 45 12], ... 'String','Plot', ... 'Tag','PlotNow');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[379.5 250.25 45 15], ... 'String','50', ... 'Style','edit', ... 'Tag','Velocity');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[378.75 193 45 15], ... 'String','1', ... 'Style','edit', ... 'Tag','Ts');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'Callback','Plot_Graph Theta', ... 'ListboxTop',0, ... 'Position',[320 250.25 50.75 15.75], ... 'String','Velocity', ... 'Style','text', ... 'Tag','text1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[320 190.5 50.75 25], ... 'String','Sampling Interval', ... 'Style','text', ... 'Tag','text1');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[428.25 250.25 26.25 13.5], ... 'String','km/h', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[427.5 227 26.25 13.5], ... 'String','MHz', ... 'Style','text', ... 'Tag','StaticText2');h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.925490196078431 0.913725490196078 0.847058823529412], ... 'ListboxTop',0, ... 'Position',[427.5 193 23.25 13.5], ... 'String','ms', ... 'Style','text', ... 'Tag','StaticText2');h1 = axes('Parent',h0, ... 'CameraUpVector',[0 1 0], ... 'CameraUpVectorMode','manual', ... 'Color',[1 1 1], ... 'ColorOrder',mat3, ... 'Position',mat4, ... '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.4966442953020135 -0.08955223880597019 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.09731543624161074 0.4962686567164178 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.2416107382550335 1.541044776119403 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',mat5, ... 'Tag','Axes1Text1', ... 'VerticalAlignment','bottom');set(get(h2,'Parent'),'Title',h2);if nargout > 0, fig = h0; end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -