![]() |
BCH 循环码界面
h0 = figure('Units','points', ...
'Color',[0.8 0.8 0.8], ... 'Colormap','default', ... 'FileName','start.m', ... 'MenuBar','none', ... 'Name',' 循环码编译码 ', ... 'NumberTitle','off', ... 'PaperPosition',[18 180 576 432], ... 'PaperUnits','points', ... 'Position',[230 150 475.25 350.5], ... 'Resize','on', ... 'Tag','UIFigure3', ... 'ToolBar','none'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[80.75 310.5 163.75 13.75], ... 'String','信息码波形', ... 'Style','text', ... 'ForegroundColor','b', ... 'Tag','StaticText1'); h1 = axes('Parent',h0,... 'Position',[0.06,0.65,0.4,0.20],... 'Visible','on',... 'Tag','haxes1',... 'Xlim',[0 15],... 'Ylim',[0 15]); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[80.75 200.5 163.75 13.75], ... 'String','编码波形图', ... 'Style','text', ... 'ForegroundColor','b', ... 'Tag','StaticText1'); h2 = axes('Parent',h0,... 'Position',[0.06,0.35,0.4,0.2],... 'Visible','on',... 'Tag','haxes2',... 'Xlim',[0 15],... 'Ylim',[0 15]); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[80.75 90.5 163.75 13.75], ... 'String','信道噪声码波形图', ... 'Style','text', ... 'ForegroundColor','b', ... 'Tag','StaticText1'); h3 = axes('Parent',h0,... 'Position',[0.06,0.05,0.4,0.2],... 'Visible','on',... 'Tag','haxes3',... 'Xlim',[0 15],... 'Ylim',[0 15]); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[320.75 310.5 163.75 13.75], ... 'String','接收码波形图', ... 'Style','text', ... 'ForegroundColor','b', ... 'Tag','StaticText1'); h4 = axes('Parent',h0,... 'Position',[0.56,0.65,0.4,0.2],... 'Visible','on',... 'Tag','haxes4',... 'Xlim',[0 15],... 'Ylim',[0 15]); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[320.75 200.5 163.75 13.75], ... 'String','译码波形图', ... 'Style','text', ... 'ForegroundColor','b', ... 'Tag','StaticText1'); h5 = axes('Parent',h0,... 'Position',[0.56,0.35,0.4,0.2],... 'Visible','on',... 'Tag','haxes5',... 'Xlim',[0 15],... 'Ylim',[0 15]); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[250.75 80.5 63.75 13.75], ... 'String','输入信息码:', ... 'Style','text', ... 'ForegroundColor','b', ... 'Tag','StaticText1'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[310.75 80.5 150.75 13.75], ... 'String','[0 1 1 1 1 0 1 0 1 0]', ... 'Style','edit', ... 'Tag','data'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[250.75 60.5 63.75 13.75], ... 'String','输入噪声码:', ... 'Style','text', ... 'ForegroundColor','b', ... 'Tag','StaticText1'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'HorizontalAlignment','left', ... 'ListboxTop',0, ... 'Position',[310.75 60.5 150.75 13.75], ... 'String','[0 0 1 0 0 0 0 0 0 0 0 0 0 0 0]', ... 'Style','edit', ... 'Tag','noise'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'BusyAction','cancel', ... 'Callback','debchcode', ... 'Interruptible','off', ... 'ListboxTop',0, ... 'Position',[250.75 10.5 93.75 18.75], ... 'String','译码/画图', ... 'ForegroundColor',[0 0.4 0], ... 'FontWeight','bold', ... 'Tag','decode'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.8 0.8 0.8], ... 'BusyAction','cancel', ... 'Callback','close', ... 'Interruptible','off', ... 'ListboxTop',0, ... 'Position',[368.75 10.5 93.75 18.75], ... 'String','退出系统', ... 'ForegroundColor',[0 0.4 0], ... 'FontWeight','bold', ... 'Tag','Pushbutton1'); |
这个是BCH界面编写程序,希望对写界面的朋友有帮助。
|
所有时间均为北京时间。现在的时间是 06:22。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.