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

📄 ui_start.asv

📁 各种调制方式的代码
💻 ASV
字号:
h0 = figure('Units','points', ...
	'Color',[0.8 0.8 0.8], ...
	'Colormap','default', ...
	'FileName','start.m', ...
	'MenuBar','none', ...
	'Name','STBC of Cooperative Communication', ...
	'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 Channel Model', ...
    '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','Number of Cooperative Nodes', ...
	'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','1', ...
	'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','2    ', ...
	'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','3', ...
	'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','4', ...
	'Style','checkbox', ...
	'Tag','4Tx');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','ui_check_params', ...
	'ListboxTop',0, ...
	'Position',[18.75 147.5 93.75 18.75], ...
	'String','5    ', ...
	'Style','checkbox', ...
	'Tag','5Tx');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','ui_check_params', ...
	'ListboxTop',0, ...
	'Position',[78.75 147.5 93.75 18.75], ...
	'String','6    ', ...
	'Style','checkbox', ...
	'Tag','6Tx');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','ui_check_params', ...
	'ListboxTop',0, ...
	'Position',[138.75 147.5 93.75 18.75], ...
	'String','7    ', ...
	'Style','checkbox', ...
	'Tag','7Tx');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'Callback','ui_check_params', ...
	'ListboxTop',0, ...
	'Position',[198.75 147.5 93.75 18.75], ...
	'String','8', ...
	'Style','checkbox', ...
	'Tag','8Tx');
%接收天线个数选择
% 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 + -