📄 wavexpogui.m
字号:
function p11_CreateFcn(hObject, eventdata, handles)usewhitebg = 1;if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]);else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on slider movement.function p11_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'pslider'% --- Executes during object creation, after setting all properties.function p12_CreateFcn(hObject, eventdata, handles)usewhitebg = 1;if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]);else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on slider movement.function p12_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'pslider'% --- Executes during object creation, after setting all properties.function p13_CreateFcn(hObject, eventdata, handles)usewhitebg = 1;if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]);else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on slider movement.function p13_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'pslider'% --- Executes during object creation, after setting all properties.function p14_CreateFcn(hObject, eventdata, handles)usewhitebg = 1;if usewhitebg set(hObject,'BackgroundColor',[.9 .9 .9]);else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));end% --- Executes on slider movement.function p14_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'pslider'% --- Executes during object creation, after setting all properties.function p8t_CreateFcn(hObject, eventdata, handles)if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction p8t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 8; set(gcf,'UserData',handles); wavexpofn 'ptext'% --- Executes during object creation, after setting all properties.function p9t_CreateFcn(hObject, eventdata, handles)if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction p9t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 9; set(gcf,'UserData',handles); wavexpofn 'ptext'% --- Executes during object creation, after setting all properties.function p10t_CreateFcn(hObject, eventdata, handles)if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction p10t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 10; set(gcf,'UserData',handles); wavexpofn 'ptext'% --- Executes during object creation, after setting all properties.function p11t_CreateFcn(hObject, eventdata, handles)if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction p11t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 11; set(gcf,'UserData',handles); wavexpofn 'ptext'% --- Executes during object creation, after setting all properties.function p12t_CreateFcn(hObject, eventdata, handles)if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction p12t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 12; set(gcf,'UserData',handles); wavexpofn 'ptext'% --- Executes during object creation, after setting all properties.function p13t_CreateFcn(hObject, eventdata, handles)if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction p13t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 13; set(gcf,'UserData',handles); wavexpofn 'ptext'% --- Executes during object creation, after setting all properties.function p14t_CreateFcn(hObject, eventdata, handles)if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction p14t_Callback(hObject, eventdata, handles) handles = get(gcf,'UserData'); handles.textnum = 14; set(gcf,'UserData',handles); wavexpofn 'ptext'% --------------------------------------------------------------------function Untitled_1_Callback(hObject, eventdata, handles)% hObject handle to Untitled_1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function sonogram_Callback(hObject, eventdata, handles) wavexpofn 'sonogram';% --------------------------------------------------------------------function fourier_Callback(hObject, eventdata, handles) wavexpofn 'fourier';% --- Executes on button press in randomize.function randomize_Callback(hObject, eventdata, handles) wavexpofn 'randomizephase';% --------------------------------------------------------------------function alias_Callback(hObject, eventdata, handles)% hObject handle to alias (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) wavexpofn 'alias';% --------------------------------------------------------------------function help_Callback(hObject, eventdata, handles)% hObject handle to help (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) wavexpofn 'help';% --------------------------------------------------------------------function Untitled_2_Callback(hObject, eventdata, handles)% hObject handle to Untitled_2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --- Creates and returns a handle to the GUI figure. function h1 = wavexpogui_LayoutFcn(policy)% policy - create a new figure or use a singleton. 'new' or 'reuse'.persistent hsingleton;if strcmpi(policy, 'reuse') & ishandle(hsingleton) h1 = hsingleton; return;endh1 = figure(...'Units','characters',...'Color',[0.701960784313725 0.701960784313725 0.701960784313725],...'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125 1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125 1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1 0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1 0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625 0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0 0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],...'IntegerHandle','off',...'InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),...'MenuBar','none',...'Name','wavexpo',...'NumberTitle','off',...'PaperOrientation','landscape',...'PaperPosition',[0.25 2.5 10 8],...'PaperSize',[11 8.5],...'Position',[80.2 11.2307692307692 175 50.2307692307692],...'Renderer',get(0,'defaultfigureRenderer'),...'RendererMode','manual',...'HandleVisibility','callback',...'Tag','wavexpo_fig',...'UserData',[]);setappdata(h1, 'GUIDEOptions',struct(...'active_h', [], ...'taginfo', struct(...'figure', 2, ...'text', 104, ...'axes', 2, ...'slider', 95, ...'frame', 10, ...'listbox', 2, ...'popupmenu', 2, ...'edit', 110, ...'pushbutton', 8, ...'togglebutton', 2), ...'override', 1, ...'release', 13, ...'resize', 'simple', ...'accessibility', 'callback', ...'mfile', 1, ...'callbacks', 1, ...'singleton', 1, ...'syscolorfig', 1, ...'lastSavedFile', '/Users/bobsturm/gibson/SSUM.PC/wavexpo/wavexpo.m', ...'blocking', 0));h2 = uicontrol(...'Parent',h1,...'Units','characters',...'FontSize',14,...'FontWeight','bold',...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[1.33333333333333 47.7317259854573 40 1.83263171322873],...'String','Waveform Generator',...'Style','text',...'Tag','text91');h3 = axes(...'Parent',h1,...'Units','characters',...'CameraPosition',[0.5 0.5 9.16025403784439],...'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),...'Color',get(0,'defaultaxesColor'),...'ColorOrder',get(0,'defaultaxesColorOrder'),...'Position',[47.8 34.9230769230769 125.4 14.7692307692308],...'XColor',get(0,'defaultaxesXColor'),...'YColor',get(0,'defaultaxesYColor'),...'ZColor',get(0,'defaultaxesZColor'),...'Tag','waveplot');h4 = get(h3,'title');set(h4,...'Parent',h3,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.499264705882353 1.03611111111111 1.00005459937205],...'VerticalAlignment','bottom',...'HandleVisibility','off');h5 = get(h3,'xlabel');set(h5,...'Parent',h3,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.499264705882353 -0.130555555555556 1.00005459937205],...'VerticalAlignment','cap',...'HandleVisibility','off');h6 = get(h3,'ylabel');set(h6,...'Parent',h3,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[-0.0345588235294118 0.491666666666667 1.00005459937205],...'Rotation',90,...'VerticalAlignment','bottom',...'HandleVisibility','off');h7 = get(h3,'zlabel');set(h7,...'Parent',h3,...'Color',[0 0 0],...'HorizontalAlignment','right',...'Position',[-0.366911764705882 1.025 1.00005459937205],...'HandleVisibility','off',...'Visible','off');h8 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.5 0.701960784313725 0.701960784313725],...'ListboxTop',0,...'Position',[1.10759493670886 -0.0822004028197382 60.3639240506329 32],...'String',{ '' },...'Style','frame',...'Tag','frame2');h9 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','wavexpogui(''f0_Callback'',gcbo,[],guidata(gcbo))',...'Max',14.45,...'Min',4.3,...'Position',[6.83016877637131 28.7701409869084 43.1962025316456 1.0686052366566],...'String',{ '' },...'Style','slider',...'CreateFcn','wavexpogui(''f0_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','f0');h10 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','wavexpogui(''waveform_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[1.33333333333333 37.6522515626993 19.1666666666667 1.91593315473912],...'String',{ 'Sine'; 'Square'; 'Triangle'; 'Sawtooth'; 'Impulse'; 'Random' },...'Style','popupmenu',...'Value',1,...'CreateFcn','wavexpogui(''waveform_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','waveform');h11 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','wavexpogui(''f0t_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[51.1339662447257 28.6057401812689 8.30696202531646 1.56180765357503],...'String',{ 'Edit Text' },...'Style','edit',...'CreateFcn','wavexpogui(''f0t_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','f0t');h12 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','wavexpogui(''f1_Callback'',gcbo,[],guidata(gcbo))',...'Max',14.45,...'Min',4.3,...'Position',[6.83016877637131 26.8795317220544 43.1962025316456 1.0686052366566],...'String',{ '' },...'Style','slider',...'CreateFcn','wavexpogui(''f1_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','f1');h13 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','wavexpogui(''f1t_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[51.1339662447257 26.7151309164149 8.30696202531646 1.56180765357503],...'String',{ 'Edit Text' },...'Style','edit',...'CreateFcn','wavexpogui(''f1t_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','f1t');h14 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','wavexpogui(''f2_Callback'',gcbo,[],guidata(gcbo))',...'Max',14.45,...'Min',4.3,...'Position',[6.83016877637131 24.9889224572004 43.1962025316456 1.0686052366566],...'String',{ '' },...'Style','slider',...'CreateFcn','wavexpogui(''f2_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','f2');h15 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','wavexpogui(''f2t_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[51.1339662447257 24.8245216515609 8.30696202531646 1.56180765357503],...'String',{ 'Edit Text' },...'Style','edit',...'CreateFcn','wavexpogui(''f2t_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','f2t');h16 = uicontrol(...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -