⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spectrumexpogui.m

📁 非常好的数字处理教程
💻 M
📖 第 1 页 / 共 4 页
字号:
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 14.0833333333333 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 14.0833333333333 5.66666666666667 1.83333333333333],...'String','2',...'Style','text',...'Tag','text9',...'UserData',[]);h20 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','spectrumexpogui(''freq2_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[97.6666666666667 14.0833333333333 12.1666666666667 1.5],...'String','0',...'Style','edit',...'Value',440,...'CreateFcn','spectrumexpogui(''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 51.9166666666667 100 10],...'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.195833333333333 0.495833333333333 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','spectrumexpogui(''amp2_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[97.6666666666667 11.3333333333333 12.1666666666667 1.5],...'String','0',...'Style','edit',...'CreateFcn','spectrumexpogui(''amp2_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','amp2');h27 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','spectrumexpogui(''phase2_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[97.8333333333333 8.58333333333333 12.1666666666667 1.5],...'String','0.0',...'Style','edit',...'CreateFcn','spectrumexpogui(''phase2_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','phase2');h28 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''freq1slider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Max',14.428,...'Min',4.322,...'Position',[4 12.8333333333333 50 1],...'String','8.7814',...'Style','slider',...'Value',8.7814,...'CreateFcn','spectrumexpogui(''freq1slider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','freq1slider');h29 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''amp1slider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Max',2,...'Position',[4 10.25 50 1],...'String','0.5',...'Style','slider',...'Value',0.5,...'CreateFcn','spectrumexpogui(''amp1slider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','amp1slider');h30 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''phase1slider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Max',180,...'Min',-180,...'Position',[4 7.33333333333333 50 1],...'String','0.0',...'Style','slider',...'CreateFcn','spectrumexpogui(''phase1slider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','phase1slider');h31 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''freq2slider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Max',14.428,...'Min',4.322,...'Position',[60 12.8333333333333 50 1],...'String','0',...'Style','slider',...'Value',4.322,...'CreateFcn','spectrumexpogui(''freq2slider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','freq2slider');h32 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''amp2slider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Max',2,...'Position',[60 10.25 50 1],...'String','0',...'Style','slider',...'CreateFcn','spectrumexpogui(''amp2slider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','amp2slider');h33 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''phase2slider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Max',180,...'Min',-180,...'Position',[60 7.33333333333333 50 1],...'String','0',...'Style','slider',...'CreateFcn','spectrumexpogui(''phase2slider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','phase2slider');h34 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','spectrumexpogui(''offset_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[41.6666666666667 5.75 12.1666666666667 1.5],...'String','0.0',...'Style','edit',...'CreateFcn','spectrumexpogui(''offset_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','offset');h35 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'CData',[],...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[4 5.5 8 1.33333333333333],...'String','Offset',...'Style','text',...'Tag','text10',...'UserData',[]);h36 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''offsetslider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[4 4.58333333333333 50 1],...'String','0.0',...'Style','slider',...'CreateFcn','spectrumexpogui(''offsetslider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','offsetslider');h37 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','spectrumexpogui(''durationtext_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Position',[97.8333333333333 5.25 12.1666666666667 1.5],...'String','0.01',...'Style','edit',...'Value',440,...'CreateFcn','spectrumexpogui(''durationtext_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','durationtext');h38 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.9 0.9 0.9],...'Callback','spectrumexpogui(''durationslider_Callback'',gcbo,[],guidata(gcbo))',...'ListboxTop',0,...'Min',0.01,...'Position',[60 4 50 1],...'String','0.1',...'Style','slider',...'Value',0.01,...'CreateFcn','spectrumexpogui(''durationslider_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','durationslider');h39 = uicontrol(...'Parent',h1,...'Units','characters',...'FontSize',18,...'FontWeight','bold',...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[1.66666666666667 0.666666666666667 49.1666666666667 2],...'String','Spectrum Explorer',...'Style','text',...'Tag','text13');h40 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','spectrumexpogui(''gridbox_Callback'',gcbo,[],guidata(gcbo))',...'CData',[],...'ListboxTop',0,...'Position',[92.5 0.75 11.3333333333333 1.41666666666667],...'String','Grid',...'Style','checkbox',...'Value',1,...'Tag','gridbox',...'UserData',[]);h41 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'Callback','spectrumexpogui(''plot1box_Callback'',gcbo,[],guidata(gcbo))',...'CData',[],...'ListboxTop',0,...'Position',[28.6666666666667 14.0833333333333 11.5 1.5],...'String','Plot',...'Style','checkbox',...'Value',1,...'Tag','plot1box',...'UserData',[]);h42 = uicontrol(...'Parent',h1,...'Units','characters',...'BackgroundColor',[0.597913499705588 0.713785514372254 1],...'Callback','spectrumexpogui(''plot2box_Callback'',gcbo,[],guidata(gcbo))',...'CData',[],...'ListboxTop',0,...'Position',[84.5 14.0833333333333 11.5 1.5],...'String','Plot',...'Style','checkbox',...'Tag','plot2box',...'UserData',[]);h43 = uicontrol(...'Parent',h1,...'Units','normalized',...'HorizontalAlignment','left',...'ListboxTop',0,...'Position',[0.525622254758419 0.0817941952506596 0.127379209370425 0.0184696569920844],...'String','Plot Duration',...'Style','text',...'Tag','text16');h44 = uicontrol(...'Parent',h1,...'Units','characters',...'Callback','spectrumexpogui(''popupmenu1_Callback'',gcbo,[],guidata(gcbo))',...'CData',[],...'ListboxTop',0,...'Position',[64.5 0.75 13.5 1.41666666666667],...'String',{  'Sum'; 'Product' },...'Style','popupmenu',...'Value',1,...'CreateFcn','spectrumexpogui(''popupmenu1_CreateFcn'',gcbo,[],guidata(gcbo))',...'Tag','popupmenu1',...'UserData',[]);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -