📄 teqdemov3.m
字号:
% TEQDEMOV3 Demonstrates channel equalizer design functions% in the DMTTEQ Toolbox.%% To start the demo type "teqdemov3".%% For more information use the "info" button after starting% the demo.% Copyright (c) 1999-2002 The University of Texas% All Rights Reserved.% % This program is free software; you can redistribute it and/or modify% it under the terms of the GNU General Public License as published by% the Free Software Foundation; either version 2 of the License, or% (at your option) any later version.% % This program is distributed in the hope that it will be useful,% but WITHOUT ANY WARRANTY; without even the implied warranty of% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the% GNU General Public License for more details.% % The GNU Public License is available in the file LICENSE, or you% can write to the Free Software Foundation, Inc., 59 Temple Place -% Suite 330, Boston, MA 02111-1307, USA, or you can find it on the% World Wide Web at http://www.fsf.org.% % Programmers: Ming Ding and Zukang Shen% Version: @(#)teqdemov3.m 1.0 09/09/02% % The authors are with the Department of Electrical and Computer% Engineering, The University of Texas at Austin, Austin, TX.% They can be reached at ming@ece.utexas.edu.% They are also with the Embedded Signal Processing% Laboratory in the Dept. of ECE., http://anchovy.ece.utexas.edu.function teqdemov3(action);if nargin < 1, action='init';end;if strcmp(action,'init'),h0 = figure('Position',[232 255 575 423], ... 'ToolBar','none',... 'name','DMTTEQ ToolBox 3.0',... 'NumberTitle','off',... 'Menubar','figure');figureColor = get(h0, 'Color'); %Welcome textboxh1 = uicontrol('Units','normalized', ... 'Style', 'text', ... 'HorizontalAlignment','center', ... 'Units','normalized', ... 'BackgroundColor', [1 1 1], ... 'Min', 0, ... 'Max', 2, ... 'Value', [], ... 'Enable', 'inactive', ... 'Position',[0.05 0.76 0.36 0.17], ... 'Callback', '', ... 'String', {'Thank you for using', 'TEQ ToolBox 3.0',... 'please choose a', 'receiver structure'});%Design Demo with the Single-path StructureSPHdl = uicontrol( ... 'Units','normalized',... 'Style', 'pushbutton', ... 'Position', [0.05 0.65 0.36 0.07], ... 'String', 'Single-Path TEQ', ... 'Callback', 'teqdemo'); %Design Demo with the Dual-path StructureDPHdl = uicontrol( ... 'Units','normalized',... 'Style', 'pushbutton', ... 'Position', [0.05 0.53 0.36 0.07], ... 'String', 'Dual-Path TEQ', ... 'Callback', 'dualteq'); %Design Demo with the Per Tone StructurePETHdl = uicontrol( ... 'Units','normalized',... 'Style', 'pushbutton', ... 'Position', [0.05 0.41 0.36 0.07], ... 'String', 'Per Tone', ... 'Callback', 'pertone'); %Display the ESPL Logoax2=axes( 'Position', [0.05 0.13 0.36 0.25],'visible', 'off');LogoHdl=imread('ESPLogo','gif');imshow(LogoHdl);% create a listbox for displaying the 'about' informationaboutListPos=[0.45,0.25,0.5,0.69];aboutinfo = {...'TEQDEMO Demonstrates channel equalizer design functions''in the DMTTEQ Toolbox.'' ''Copyright (c) 1999-2002 The University of Texas''All Rights Reserved.'' ' 'This program is free software; you can redistribute it and/or modify''it under the terms of the GNU General Public License as published by''the Free Software Foundation; either version 2 of the License, or''(at your option) any later version.'' ' 'This program is distributed in the hope that it will be useful,''but WITHOUT ANY WARRANTY; without even the implied warranty of''MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the''GNU General Public License for more details.'' ' ' Director: Prof. Brian L. Evans'' Programmers: Dr. Guner Arslan, Dr. Biao Lu, Mr. Ming Ding, and Mr. Zukang Shen'' Version: 3.0 09/09/02'' '' The authors are with the Department of Electrical and Computer'' Engineering, The University of Texas at Austin, Austin, TX.'};aboutListH = uicontrol( ... 'Style', 'list', ... 'HorizontalAlignment','left', ... 'Units','normalized', ... 'BackgroundColor', figureColor, ... 'Min', 0, ... 'Max', 2, ... 'Value', [], ... 'Enable', 'inactive', ... 'Position', aboutListPos, ... 'Callback', '', ... 'String', aboutinfo, ... 'Tag', 'AboutListbox'); % help button labelStr='Info'; callbackStr='teqdemov3(''info'')'; helpHndl=uicontrol( ... 'Style','pushbutton', ... 'Units','normalized', ... 'Position',[0.45 0.13 0.22 0.07], ... 'String',labelStr, ... 'Callback',callbackStr); %close button backH = uicontrol( ... 'Style', 'pushbutton', ... 'Units', 'normalized', ... 'Position', [0.73 0.13 0.22 0.07], ... 'String', 'Close', ... 'Tag', 'return', ... 'Callback', 'close(gcbf)'); elseif strcmp(action,'info'), ttlStr = get(gcf,'name'); myFig = gcf; topic1 = ['DMT channel equalizaer design demo']; helptop1 = [... 'This demo lets you design channel equalizers for DMT systems and ' 'analyze its performance. ' ' ' 'Usage: choose the different receiver structure to begin the design. ' ' ' 'The following receiver structure are supported: ' ' Signal path TEQ, ' ' Dual path TEQ, ' ' Per Tone Equalizer banks. ' ]; str = { topic1 helptop1}; helpwin(str,'Topic 1','DMTTEQ toolbox'); return end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -