?? ui_start.m
字號:
h0 = figure('Units','points', ...
'Color',[0.8 0.8 0.8], ...
'Colormap','default', ...
'FileName','start.m', ...
'MenuBar','none', ...
'Name','Space-Time Block Coding ', ...
'NumberTitle','off', ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'Position',[230 150 275.25 350.5], ...
'Resize','off', ...
'Tag','UIFigure', ...
'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 317.5 93.75 18.75], ...
'String','Frame Length (Symbols)', ...
'Style','text', ...
'ToolTipString','This is the length of the frame in symbols', ...
'ForegroundColor','b', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','ui_check_params', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[150.75 317.5 93.75 18.75], ...
'String','130', ...
'Style','edit', ...
'Tag','FrmLen');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 287.5 93.75 18.75], ...
'String','Number of Packets', ...
'Style','text', ...
'ToolTipString','This is the number of packets to be transmitted', ...
'ForegroundColor','b', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','ui_check_params', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[150.75 287.5 93.75 18.75], ...
'String','100', ...
'Style','edit', ...
'Tag','NumofPkt');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontSize',9, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 257.5 93.75 18.75], ...
'String','Modulation', ...
'Style','text', ...
'ForegroundColor','b', ...
'ToolTipString','Type of modulation is selectable.', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ListboxTop',0, ...
'Position',[150.75 257.5 93.75 18.75], ...
'String',['BPSK ';'QPSK ';'8PSK ';'16QAM';], ...
'Style','popupmenu', ...
'Tag','Modulation', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 227.5 93.75 18.75], ...
'String','Channel Model', ...
'Style','text', ...
'ToolTipString','This is the number of packets to be transmitted', ...
'ForegroundColor','b', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[18.75 207.5 93.75 18.75], ...
'String','AWGN', ...
'Style','checkbox', ...
'Tag','AWGN ', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[78.75 207.5 93.75 18.75], ...
'String','Rayleigh', ...
'Style','checkbox', ...
'Tag','Rayleigh');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 187.5 203.75 18.75], ...
'String','Transmit Antenna Diversity', ...
'Style','text', ...
'ForegroundColor','b', ...
'ToolTipString','STBC not coded for 1x3, 2x3, 2x4, 3x2, 3x3, 4x2 and 4x3 systems!!', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[18.75 167.5 93.75 18.75], ...
'String','x1 ', ...
'Style','checkbox', ...
'Tag','1Tx');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[78.75 167.5 93.75 18.75], ...
'String','x2 ', ...
'Style','checkbox', ...
'Tag','2Tx', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[138.75 167.5 93.75 18.75], ...
'String','x3', ...
'Style','checkbox', ...
'Tag','3Tx');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[198.75 167.5 93.75 18.75], ...
'String','x4', ...
'Style','checkbox', ...
'Tag','4Tx');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 147.5 203.75 13.5], ...
'String','Receive Antenna Diversity', ...
'Style','text', ...
'ForegroundColor','b', ...
'ToolTipString','STBC not coded for 1x3, 2x3, 2x4, 3x2, 3x3, 4x2 and 4x3 systems!!', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[18.75 127.5 103.75 13.5], ...
'String','x1', ...
'Style','checkbox', ...
'Tag','1Rx');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[78.75 127.5 103.75 13.5], ...
'String','x2', ...
'Style','checkbox', ...
'Tag','2Rx', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[138.75 127.5 103.75 13.5], ...
'String','x3', ...
'Style','checkbox', ...
'Tag','3Rx');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[198.75 127.5 103.75 13.5], ...
'String','x4', ...
'Style','checkbox', ...
'Tag','4Rx');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[18.75 97.5 103.75 13.5], ...
'String','Channel Estimation', ...
'Style','checkbox', ...
'ForegroundColor','b', ...
'ToolTipString','Channel estimation is based on MMSE. Coding available only for 2x2 systems ', ...
'Tag','Channel_Est', ...
'Value',0);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[138.75 97.5 103.75 13.5], ...
'String','Receive Correlation', ...
'Style','checkbox', ...
'ForegroundColor','b', ...
'ToolTipString','Coding available only for 2x2 systems. Enter correlation coefficient value between 0 and 1', ...
'Tag','Rx_corr', ...
'Value',0);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','ui_check_params', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[138.75 77.5 23.75 13.5], ...
'String','0', ...
'Style','edit', ...
'Tag','corr_value');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 77.5 93.75 13.5], ...
'String','Correlation Coefficient', ...
'Style','text', ...
'ForegroundColor','r', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','ui_check_params', ...
'ListboxTop',0, ...
'Position',[18.75 47.5 93.75 13.5], ...
'String','Save Run ?', ...
'Style','checkbox', ...
'ToolTipString','File will be saved in the current directory', ...
'ForegroundColor','b', ...
'Tag','Savefile');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','ui_check_params', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[88.75 27.5 93.75 18.75], ...
'String','', ...
'Style','edit', ...
'Tag','FileName');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18.75 27.5 60.75 15.5], ...
'String','File Name', ...
'Style','text', ...
'ForegroundColor','r', ...
'FontWeight','bold', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'BusyAction','cancel', ...
'Callback','ui_start_sim', ...
'Interruptible','off', ...
'ListboxTop',0, ...
'Position',[168.75 5.5 93.75 18.75], ...
'String','Start Simulation', ...
'ForegroundColor',[0 0.4 0], ...
'FontWeight','bold', ...
'Tag','Pushbutton1');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -