📄 ofdm_gui.m
字号:
% --------------------------------------------------------------------function varargout = edit3_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the uicontrol handles.edit3.% --------------------------------------------------------------------function varargout = pushbutton4_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton4.s = get(handles.popupmenu5,'String');i = get(handles.popupmenu5,'Value');[y,fs,nbits] = wavread(char(s(i)));sound(y,fs);% --------------------------------------------------------------------function varargout = togglebutton2_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.togglebutton2.disp('togglebutton2 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = axes9_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the axes handles.axes9.disp('axes9 ButtondownFcn not implemented yet.')% --------------------------------------------------------------------function varargout = axes8_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the axes handles.axes8.disp('axes8 ButtondownFcn not implemented yet.')% --------------------------------------------------------------------function varargout = radiobutton1_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the uicontrol handles.radiobutton1.disp('radiobutton1 ButtondownFcn not implemented yet.')% --------------------------------------------------------------------function varargout = text14_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.text14.disp('text14 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = text13_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.text13.disp('text13 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = edit8_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.edit8.% --------------------------------------------------------------------function varargout = edit9_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.edit9.% --------------------------------------------------------------------function varargout = edit10_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.edit10.disp('edit10 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = edit11_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.edit11.disp('edit11 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = popupmenu5_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.popupmenu5.axes(handles.axes8)s = get(h,'String');i = get(h,'Value');x = wavread(char(s(i)));plot(x);% --------------------------------------------------------------------function varargout = popupmenu6_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.popupmenu6.axes(handles.axes8)s = get(h,'String');i = get(h,'Value');x = imread(char(s(i)));colormap(gray)imagesc(x)axis off% --------------------------------------------------------------------function varargout = popupmenu5_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the uicontrol handles.popupmenu5.axes(handles.axes8)s = get(h,'String');i = get(h,'Value');x = wavread(char(s(i)));plot(x);% --------------------------------------------------------------------function varargout = popupmenu6_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the uicontrol handles.popupmenu6.axes(handles.axes8)s = get(h,'String');i = get(h,'Value');x = imread(char(s(i)));colormap(gray)imagesc(x)axis off% --------------------------------------------------------------------function varargout = edit13_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the uicontrol handles.edit13.disp('edit13 ButtondownFcn not implemented yet.')% --------------------------------------------------------------------function varargout = edit18_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.edit18.% --------------------------------------------------------------------function varargout = text25_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.text25.disp('text25 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = edit20_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.edit20.% --------------------------------------------------------------------function varargout = edit12_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the uicontrol handles.edit12.disp('edit12 ButtondownFcn not implemented yet.')% --------------------------------------------------------------------function varargout = pushbutton5_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton5.[y,fs,nbits] = wavread('wav_out.wav');sound(y,fs);% --------------------------------------------------------------------function varargout = radiobutton3_ButtondownFcn(h, eventdata, handles, varargin)% Stub for ButtondownFcn of the uicontrol handles.radiobutton3.disp('radiobutton3 ButtondownFcn not implemented yet.')% --------------------------------------------------------------------function varargout = checkbox1_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.checkbox1.disp('checkbox1 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = popupmenu4_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.popupmenu4.disp('popupmenu4 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = pushbutton6_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton6.set(handles.pushbutton2,'BackgroundColor',[0 .75 0]);set(handles.radiobutton1,'Value',1);set(handles.radiobutton2,'Value',0);set(handles.radiobutton3,'Value',0);set(handles.edit5,'String','Supercalifragilisticexpialidocious!');set(handles.text15,'String','Supercalifragilisticexpialidocious!');set(handles.edit5,'Enable','on');set(handles.popupmenu5,'Value',1);set(handles.popupmenu6,'Value',1);set(handles.edit20,'String','8');set(handles.pushbutton5,'Visible','off');set(handles.pushbutton7,'Enable','off');set(handles.pushbutton11,'Enable','off');set(handles.edit8,'String','1001');set(handles.edit9,'String','200');set(handles.edit18,'String','100');set(handles.edit12,'String','100');set(handles.edit21,'String','1');set(handles.text38,'Visible','off');set(handles.text14,'Visible','off');set(handles.text18,'Visible','off');set(handles.text34,'Visible','off');set(handles.text31,'Visible','off');set(handles.text33,'Visible','off');set(handles.text32,'Visible','off');set(handles.text35,'Visible','off');set(handles.text38,'Visible','off');set(handles.edit5,'Enable','on');set(handles.edit5,'BackgroundColor',[1.0,1.0,1.0]);set(handles.popupmenu5,'Enable','inactive');set(handles.popupmenu5,'BackgroundColor',[0.8313725490196078,0.8156862745098039,0.7843137254901961]);set(handles.popupmenu6,'Enable','inactive');set(handles.popupmenu6,'BackgroundColor',[0.8313725490196078,0.8156862745098039,0.7843137254901961]);set(handles.edit20,'Enable','inactive');set(handles.edit20,'BackgroundColor',[0.8313725490196078,0.8156862745098039,0.7843137254901961]);% clear axesaxes(handles.axes8)axis offcla% clear axesaxes(handles.axes9)axis offcla% clear axesaxes(handles.axes10)axis offcla% clear axesaxes(handles.axes11)axis offcla% clear axesaxes(handles.axes14)axis offcla% set textset(handles.text14,'Visible','on');set(handles.text15,'Visible','on');set(handles.text17,'Visible','off');set(handles.pushbutton4,'Visible','off');set(handles.checkbox1,'Value',1);set(handles.edit1,'String','0');set(handles.edit3,'String','0');set(handles.text10,'String','Waiting');set(handles.text27,'String',' ');set(handles.text13,'Visible','off');set(handles.text25,'Visible','off');cd c:\splo\picturesx = imread('ofdm_logo.bmp');cd c:\splo\dataaxes(handles.axes13)image(x);axis off% --------------------------------------------------------------------function varargout = text10_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.text10.disp('text10 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = text27_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.text27.disp('text27 Callback not implemented yet.')% --------------------------------------------------------------------function varargout = pushbutton7_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton7.set(handles.text41,'Visible','on');pauseset(handles.text41,'Visible','off');% --------------------------------------------------------------------function varargout = pushbutton8_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton8.pause% --------------------------------------------------------------------function varargout = pushbutton9_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton9.stop% --------------------------------------------------------------------function varargout = pushbutton10_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton10.% --------------------------------------------------------------------function varargout = pushbutton11_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.pushbutton11.global TERMTERM = 1;% --------------------------------------------------------------------function varargout = edit21_Callback(h, eventdata, handles, varargin)% Stub for Callback of the uicontrol handles.edit21.disp('edit21 Callback not implemented yet.')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -