📄 sinexpogui.m
字号:
% --------------------------------------------------------------------function fourier_Callback(hObject, eventdata, handles)% hObject handle to fourier (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) sinexpofn 'fourier';% --------------------------------------------------------------------function sonogram_Callback(hObject, eventdata, handles)% hObject handle to Untitled_3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) sinexpofn 'sonogram';% --------------------------------------------------------------------function alias_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) sinexpofn '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) sinexpofn 'help';% --- Creates and returns a handle to the GUI figure. function h1 = sinexpogui_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'),...'KeyPressFcn','update_Callback(hObject, eventdata, handles)',...'MenuBar','none',...'Name','sinexpo',...'NumberTitle','off',...'PaperPosition',get(0,'defaultfigurePaperPosition'),...'Position',[128.6 7.22435897435898 114.666666666667 47.0833333333333],...'Renderer',get(0,'defaultfigureRenderer'),...'RendererMode','manual',...'HandleVisibility','callback',...'Tag','sinexpo_fig',...'UserData',[]);setappdata(h1, 'GUIDEOptions',struct(...'active_h', [], ...'taginfo', struct(...'figure', 2, ...'axes', 5, ...'pushbutton', 5, ...'popupmenu', 3, ...'edit', 14, ...'text', 17, ...'slider', 13, ...'frame', 4, ...'togglebutton', 2, ...'checkbox', 7), ...'override', 1, ...'release', 13, ...'resize', 'simple', ...'accessibility', 'callback', ...'mfile', 1, ...'callbacks', 1, ...'singleton', 1, ...'syscolorfig', 1, ...'lastSavedFile', '/Users/bobsturm/gibson/SSUM/sine/sinexpo.m', ...'blocking', 0));h2 = axes(...'Parent',h1,...'Units','characters',...'ALim',get(0,'defaultaxesALim'),...'ALimMode','manual',...'CameraPosition',[0.5 0.5 9.16025403784439],...'CameraPositionMode','manual',...'CameraTarget',[0.5 0.5 0.5],...'CameraTargetMode','manual',...'CameraUpVector',[0 1 0],...'CameraUpVectorMode','manual',...'CameraViewAngle',6.60861036031192,...'CameraViewAngleMode','manual',...'CLim',get(0,'defaultaxesCLim'),...'CLimMode','manual',...'Color',get(0,'defaultaxesColor'),...'ColorOrder',get(0,'defaultaxesColorOrder'),...'DataAspectRatio',get(0,'defaultaxesDataAspectRatio'),...'DataAspectRatioMode','manual',...'PlotBoxAspectRatio',get(0,'defaultaxesPlotBoxAspectRatio'),...'PlotBoxAspectRatioMode','manual',...'Position',[10.1666666666667 20.5 100 12.1666666666667],...'TickDir',get(0,'defaultaxesTickDir'),...'TickDirMode','manual',...'XColor',get(0,'defaultaxesXColor'),...'XLim',get(0,'defaultaxesXLim'),...'XLimMode','manual',...'XTick',[0 0.2 0.4 0.6 0.8 1],...'XTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'XTickLabelMode','manual',...'XTickMode','manual',...'YColor',get(0,'defaultaxesYColor'),...'YLim',get(0,'defaultaxesYLim'),...'YLimMode','manual',...'YTick',[0 0.2 0.4 0.6 0.8 1],...'YTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'YTickLabelMode','manual',...'YTickMode','manual',...'ZColor',get(0,'defaultaxesZColor'),...'ZLim',get(0,'defaultaxesZLim'),...'ZLimMode','manual',...'ZTick',[0 0.5 1],...'ZTickLabel','',...'ZTickLabelMode','manual',...'ZTickMode','manual',...'Tag','sinsum',...'UserData',[]);h3 = get(h2,'title');set(h3,...'Parent',h2,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.496598639455782 1.04421768707483 1.00005459937205],...'VerticalAlignment','bottom',...'HandleVisibility','off');h4 = get(h2,'xlabel');set(h4,...'Parent',h2,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.496598639455782 -0.153061224489796 1.00005459937205],...'VerticalAlignment','cap',...'HandleVisibility','off');h5 = get(h2,'ylabel');set(h5,...'Parent',h2,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[-0.163265306122449 0.493197278911564 1.00005459937205],...'Rotation',90,...'VerticalAlignment','bottom',...'HandleVisibility','off');h6 = get(h2,'zlabel');set(h6,...'Parent',h2,...'Color',[0 0 0],...'HorizontalAlignment','right',...'Position',[-1.48979591836735 2.14625850340136 1.00005459937205],...'HandleVisibility','off',...'Visible','off');h7 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'ListboxTop',0,...'Position',[58.1666666666667 7.91666666666667 53.5 9.25],...'String',{ '' },...'Style','frame',...'Tag','frame2',...'UserData',[]);h8 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'ListboxTop',0,...'Position',[2.16666666666667 4.66666666666667 53.5 12.5],...'String',{ '' },...'Style','frame',...'Tag','frame1',...'UserData',[]);h9 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sinexpogui(''freq1_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[41.6666666666667 15 12.1666666666667 1.5],...'String','440',...'Style','edit',...'Value',440,...'ButtonDownFcn','sinexpogui(''freq1_ButtonDownFcn'',gcbo,[],guidata(gcbo))',...'CreateFcn','sinexpogui(''freq1_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','freq1');h10 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sinexpogui(''amp1_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[41.6666666666667 12.25 12.1666666666667 1.5],...'String','0.5',...'Style','edit',...'CreateFcn','sinexpogui(''amp1_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','amp1');h11 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sinexpogui(''phase1_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[41.6666666666667 9.58333333333333 12.1666666666667 1.5],...'String','0.0',...'Style','edit',...'CreateFcn','sinexpogui(''phase1_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','phase1');h12 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[4 14.75 16.3333333333333 1.33333333333333],...'String','Frequency (Hz)',...'Style','text',...'Tag','text1',...'UserData',[]);h13 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[4 11.75 11.5 1.5],...'String','Amplitude',...'Style','text',...'Tag','text3',...'UserData',[]);h14 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[60.1666666666667 12 13.6666666666667 1.33333333333333],...'String','Amplitude',...'Style','text',...'Tag','text4',...'UserData',[]);h15 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[4 9.33333333333333 13.5 1.25],...'String','Phase (deg)',...'Style','text',...'Tag','text5',...'UserData',[]);h16 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[60.1666666666667 9.08333333333333 14 1.41666666666667],...'String','Phase (deg)',...'Style','text',...'Tag','text6',...'UserData',[]);h17 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[60.1666666666667 14.25 18.3333333333333 1.83333333333333],...'String','Frequency (Hz)',...'Style','text',...'Tag','text7',...'UserData',[]);h18 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'FontSize',14,...'FontWeight','bold',...'ForegroundColor',[1 0.906591100326115 0],...'ListboxTop',0,...'Position',[21.8333333333333 15 5.66666666666667 1.83333333333333],...'String','1',...'Style','text',...'Tag','text8');h19 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'FontSize',14,...'FontWeight','bold',...'ForegroundColor',[1 0.907 0],...'ListboxTop',0,...'Position',[77.5 15 5.66666666666667 1.83333333333333],...'String','2',...'Style','text',...'Tag','text9',...'UserData',[]);h20 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sinexpogui(''freq2_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[97.6666666666667 15 12.1666666666667 1.5],...'String','0',...'Style','edit',...'Value',440,...'CreateFcn','sinexpogui(''freq2_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','freq2');h21 = axes(...'Parent',h1,...'Units','characters',...'ALim',get(0,'defaultaxesALim'),...'ALimMode','manual',...'CameraPosition',[0.5 0.5 9.16025403784439],...'CameraPositionMode','manual',...'CameraTarget',[0.5 0.5 0.5],...'CameraTargetMode','manual',...'CameraUpVector',[0 1 0],...'CameraUpVectorMode','manual',...'CameraViewAngle',6.60861036031192,...'CameraViewAngleMode','manual',...'CLim',get(0,'defaultaxesCLim'),...'CLimMode','manual',...'Color',get(0,'defaultaxesColor'),...'ColorOrder',get(0,'defaultaxesColorOrder'),...'DataAspectRatio',get(0,'defaultaxesDataAspectRatio'),...'DataAspectRatioMode','manual',...'PlotBoxAspectRatio',get(0,'defaultaxesPlotBoxAspectRatio'),...'PlotBoxAspectRatioMode','manual',...'Position',[10.1666666666667 33.5833333333333 100 12.1666666666667],...'TickDir',get(0,'defaultaxesTickDir'),...'TickDirMode','manual',...'XColor',get(0,'defaultaxesXColor'),...'XLim',get(0,'defaultaxesXLim'),...'XLimMode','manual',...'XTick',[0 0.2 0.4 0.6 0.8 1],...'XTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'XTickLabelMode','manual',...'XTickMode','manual',...'YColor',get(0,'defaultaxesYColor'),...'YLim',get(0,'defaultaxesYLim'),...'YLimMode','manual',...'YTick',[0 0.2 0.4 0.6 0.8 1],...'YTickLabel',{ '0 '; '0.2'; '0.4'; '0.6'; '0.8'; '1 ' },...'YTickLabelMode','manual',...'YTickMode','manual',...'ZColor',get(0,'defaultaxesZColor'),...'ZLim',get(0,'defaultaxesZLim'),...'ZLimMode','manual',...'ZTick',[0 0.5 1],...'ZTickLabel','',...'ZTickLabelMode','manual',...'ZTickMode','manual',...'Tag','sin1',...'UserData',[]);h22 = get(h21,'title');set(h22,...'Parent',h21,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.496598639455782 1.05102040816327 1.00005459937205],...'VerticalAlignment','bottom',...'HandleVisibility','off');h23 = get(h21,'xlabel');set(h23,...'Parent',h21,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[0.496598639455782 -0.153061224489796 1.00005459937205],...'VerticalAlignment','cap',...'HandleVisibility','off');h24 = get(h21,'ylabel');set(h24,...'Parent',h21,...'Color',[0 0 0],...'HorizontalAlignment','center',...'Position',[-0.160958904109589 0.496575342465753 1.00005459937205],...'Rotation',90,...'VerticalAlignment','bottom',...'HandleVisibility','off');h25 = get(h21,'zlabel');set(h25,...'Parent',h21,...'Color',[0 0 0],...'HorizontalAlignment','right',...'Position',[-1.48979591836735 1.08503401360544 1.00005459937205],...'HandleVisibility','off',...'Visible','off');h26 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','sinexpogui(''amp2_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[97.6666666666667 12.25 12.1666666666667 1.5],...'String','0',...'Style','edit',...'CreateFcn','sinexpogui(''amp2_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','amp2');h27 = uicontrol(...'Parent',h1,...'Units','characters',...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -