SoundGUI_win.m
上传用户:m_sun_001
上传日期:2014-07-30
资源大小:1115k
文件大小:13k
- function fig = SoundGUI_win()
- % 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.
- % This problem is solved by saving the output as a FIG-file.
- %
- % 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.
- %
- % NOTE: certain newer features in MATLAB may not have been saved in this
- % M-file due to limitations of this format, which has been superseded by
- % FIG-files. Figures which have been annotated using the plot editor tools
- % are incompatible with the M-file/MAT-file format, and should be saved as
- % FIG-files.
- load SoundGUI_win
- h0 = figure('Color',[0.9 0.9 0.9], ...
- 'Colormap',mat0, ...
- 'CreateFcn','OFDMguiFn figure', ...
- 'FileName','C:TEMPalanb_win_fix_GUIofdmproj_winSoundGUI_win.m', ...
- 'PaperPosition',[18 180 576.0000000000001 432.0000000000002], ...
- 'PaperUnits','points', ...
- 'Position',[231 85 765 601], ...
- 'Tag','Fig1', ...
- 'ToolBar','none');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[1 1 1], ...
- 'FontName','Courier', ...
- 'HorizontalAlignment','left', ...
- 'ListboxTop',0, ...
- 'Position',[40.3448275862069 3.103448275862069 296.6896551724138 70.13793103448278], ...
- 'String','Sound OFDM Demo', ...
- 'Style','text', ...
- 'Tag','StaticTextFeedback');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.3 0.3 0.3], ...
- 'ListboxTop',0, ...
- 'Position',mat1, ...
- 'Style','frame', ...
- 'Tag','Frame1');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound next', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',[372.4137931034484 337.0344827586208 60.82758620689656 22.3448275862069], ...
- 'String','Next', ...
- 'Tag','PushbuttonNext');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound close', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',[372.4137931034484 6.827586206896553 61.44827586206898 24.82758620689656], ...
- 'String','Close', ...
- 'Tag','PushbuttonClose');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound mp_channel', ...
- 'Enable','off', ...
- 'ListboxTop',0, ...
- 'Position',[372.4137931034484 180 68.89655172413795 20.48275862068966], ...
- 'String',mat2, ...
- 'Style','popupmenu', ...
- 'Tag','PopupMenuMultipath', ...
- 'Value',1, ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Enable','off', ...
- 'FontWeight','bold', ...
- 'ListboxTop',0, ...
- 'Position',mat3, ...
- 'String','Multipath Channel', ...
- 'Style','text', ...
- 'Tag','StaticTextMultipath', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'FontWeight','bold', ...
- 'ListboxTop',0, ...
- 'Position',[371.7931034482759 314.0689655172415 88.75862068965519 12.41379310344828], ...
- 'String','Generated Sounds', ...
- 'Style','text', ...
- 'Tag','StaticTextGenSounds', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound PlayOriginal', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',[371.7931034482759 290.4827586206897 72.00000000000001 21.72413793103449], ...
- 'String','Original', ...
- 'Tag','PushbuttonOriginal', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound PlayQAM', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',[371.7931034482759 265.6551724137931 73.24137931034484 21.10344827586208], ...
- 'String','QAM', ...
- 'Tag','PushbuttonQAM', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound PlayOFDM', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',[371.7931034482759 242.0689655172414 73.24137931034484 20.48275862068966], ...
- 'String','OFDM', ...
- 'Tag','PushbuttonOFDM', ...
- 'Visible','off');
- h1 = axes('Parent',h0, ...
- 'Units','points', ...
- 'Box','on', ...
- 'CameraUpVector',[0 1 0], ...
- 'CameraUpVectorMode','manual', ...
- 'Color',[1 1 1], ...
- 'ColorOrder',mat4, ...
- 'Position',[42.20689655172415 285.5172413793104 269.3793103448276 61.44827586206898], ...
- 'Tag','AxesOriginal', ...
- 'XColor',[0 0 0], ...
- 'YColor',[0 0 0], ...
- 'ZColor',[0 0 0]);
- h2 = line('Parent',h1, ...
- 'Color',[0 0 1], ...
- 'Tag','Line1', ...
- 'XData',1, ...
- 'YData',0);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.9976905311778291 -1.571428571428571 17.32050807568877], ...
- 'Tag','Text13', ...
- 'VerticalAlignment','cap');
- set(get(h2,'Parent'),'XLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',mat5, ...
- 'Rotation',90, ...
- 'Tag','Text14', ...
- 'VerticalAlignment','baseline');
- set(get(h2,'Parent'),'YLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','right', ...
- 'Position',[-0.3187066974595843 1.836734693877551 17.32050807568877], ...
- 'Tag','Text15', ...
- 'Visible','off');
- set(get(h2,'Parent'),'ZLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.9976905311778291 1.163265306122449 17.32050807568877], ...
- 'Tag','Text16', ...
- 'VerticalAlignment','bottom');
- set(get(h2,'Parent'),'Title',h2);
- h1 = axes('Parent',h0, ...
- 'Units','points', ...
- 'Box','on', ...
- 'CameraUpVector',[0 1 0], ...
- 'CameraUpVectorMode','manual', ...
- 'Color',[1 1 1], ...
- 'ColorOrder',mat6, ...
- 'Position',[43.44827586206898 206.0689655172414 268.1379310344828 58.96551724137932], ...
- 'Tag','AxesQAM', ...
- 'XColor',[0 0 0], ...
- 'YColor',[0 0 0], ...
- 'ZColor',[0 0 0]);
- h2 = line('Parent',h1, ...
- 'Color',[0 0 1], ...
- 'Tag','Line2', ...
- 'XData',1, ...
- 'YData',0);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.9976798143851507 -1.595744680851064 17.32050807568877], ...
- 'Tag','Text9', ...
- 'VerticalAlignment','cap');
- set(get(h2,'Parent'),'XLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[-0.1252900232018562 -0.02127659574468144 17.32050807568877], ...
- 'Rotation',90, ...
- 'Tag','Text10', ...
- 'VerticalAlignment','baseline');
- set(get(h2,'Parent'),'YLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','right', ...
- 'Position',[-0.3294663573085847 4.680851063829786 17.32050807568877], ...
- 'Tag','Text11', ...
- 'Visible','off');
- set(get(h2,'Parent'),'ZLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',mat7, ...
- 'Tag','Text12', ...
- 'VerticalAlignment','bottom');
- set(get(h2,'Parent'),'Title',h2);
- h1 = axes('Parent',h0, ...
- 'Units','points', ...
- 'Box','on', ...
- 'CameraUpVector',[0 1 0], ...
- 'CameraUpVectorMode','manual', ...
- 'Color',[1 1 1], ...
- 'ColorOrder',mat8, ...
- 'Position',[44.06896551724139 128.4827586206897 268.7586206896552 58.34482758620691], ...
- 'Tag','AxesOFDM', ...
- 'XColor',[0 0 0], ...
- 'YColor',[0 0 0], ...
- 'ZColor',[0 0 0]);
- h2 = line('Parent',h1, ...
- 'Color',[0 0 1], ...
- 'Tag','Line3', ...
- 'XData',1, ...
- 'YData',0);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.9953703703703704 -1.602150537634408 17.32050807568877], ...
- 'Tag','Text5', ...
- 'VerticalAlignment','cap');
- set(get(h2,'Parent'),'XLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',mat9, ...
- 'Rotation',90, ...
- 'Tag','Text6', ...
- 'VerticalAlignment','baseline');
- set(get(h2,'Parent'),'YLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','right', ...
- 'Position',[-0.3333333333333333 7.43010752688172 17.32050807568877], ...
- 'Tag','Text7', ...
- 'Visible','off');
- set(get(h2,'Parent'),'ZLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.9953703703703704 1.172043010752688 17.32050807568877], ...
- 'Tag','Text8', ...
- 'VerticalAlignment','bottom');
- set(get(h2,'Parent'),'Title',h2);
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'FontWeight','bold', ...
- 'ListboxTop',0, ...
- 'Position',[371.7931034482759 142.7586206896552 85.65517241379313 12.41379310344828], ...
- 'String','Longer Sounds', ...
- 'Style','text', ...
- 'Tag','StaticTextLongSounds', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound PlayQAMLong', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',[371.7931034482759 90.62068965517243 76.96551724137933 20.48275862068966], ...
- 'String','QAM', ...
- 'Tag','PushbuttonQAMLong', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound PlayOFDMLong', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',[371.7931034482759 65.17241379310346 76.96551724137933 21.10344827586208], ...
- 'String','OFDM', ...
- 'Tag','PushbuttonOFDMLong', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.733333 0.733333 0.733333], ...
- 'Callback','OFDMguiFnSound PlayOriginalLong', ...
- 'FontSize',14, ...
- 'ListboxTop',0, ...
- 'Position',mat10, ...
- 'String','Original', ...
- 'Tag','PushbuttonOriginalLong', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.9 0.9 0.9], ...
- 'ListboxTop',0, ...
- 'Position',[315.9310344827587 242.0689655172414 26.06896551724138 11.17241379310345], ...
- 'String','BER=', ...
- 'Style','text', ...
- 'Tag','StaticTextBER2', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[0.9 0.9 0.9], ...
- 'ListboxTop',0, ...
- 'Position',[317.1724137931035 161.3793103448276 25.44827586206897 9.931034482758623], ...
- 'String','BER=', ...
- 'Style','text', ...
- 'Tag','StaticTextBER1', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[1 1 1], ...
- 'HorizontalAlignment','left', ...
- 'ListboxTop',0, ...
- 'Position',mat11, ...
- 'Style','text', ...
- 'Tag','StaticTextBERQAM', ...
- 'Visible','off');
- h1 = uicontrol('Parent',h0, ...
- 'Units','points', ...
- 'BackgroundColor',[1 1 1], ...
- 'HorizontalAlignment','left', ...
- 'ListboxTop',0, ...
- 'Position',[322.1379310344829 145.8620689655173 37.86206896551725 12.41379310344828], ...
- 'Style','text', ...
- 'Tag','StaticTextBEROFDM', ...
- 'Visible','off');
- h1 = axes('Parent',h0, ...
- 'Units','points', ...
- 'Box','on', ...
- 'CameraUpVector',[0 1 0], ...
- 'Color',[1 1 1], ...
- 'ColorOrder',mat12, ...
- 'Position',mat13, ...
- 'Tag','Axes1', ...
- 'XColor',[0 0 0], ...
- 'YColor',[0 0 0], ...
- 'ZColor',[0 0 0]);
- h2 = line('Parent',h1, ...
- 'Color',[0 0 1], ...
- 'Tag','Line4', ...
- 'XData',1, ...
- 'YData',0);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.9979959919839679 -1.14 17.32050807568877], ...
- 'Tag','Text4', ...
- 'VerticalAlignment','cap');
- set(get(h2,'Parent'),'XLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[-0.1603206412825651 -0.004999999999999893 17.32050807568877], ...
- 'Rotation',90, ...
- 'Tag','Text3', ...
- 'VerticalAlignment','baseline');
- set(get(h2,'Parent'),'YLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','right', ...
- 'Position',[-0.2164328657314629 1.155 17.32050807568877], ...
- 'Tag','Text2', ...
- 'Visible','off');
- set(get(h2,'Parent'),'ZLabel',h2);
- h2 = text('Parent',h1, ...
- 'Color',[0 0 0], ...
- 'HandleVisibility','off', ...
- 'HorizontalAlignment','center', ...
- 'Position',[0.9979959919839679 1.04 17.32050807568877], ...
- 'Tag','Text1', ...
- 'VerticalAlignment','bottom');
- set(get(h2,'Parent'),'Title',h2);
- if nargout > 0, fig = h0; end