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

📄 gui51.m

📁 很多matlab的源代码
💻 M
📖 第 1 页 / 共 2 页
字号:
function fig = gui51()% 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 gui51h0 = figure('CloseRequestFcn','cltidemo CloseRequestFcn', ...    'Color',[0.8 0.8 0.8], ...    'Colormap',mat0, ...    'CreateFcn','cltidemo SetFigureSize', ...    'MenuBar','none', ...    'Name','LTI (Linear Time Invariant) System Demo ver 1.12', ...    'NumberTitle','off', ...    'PaperPosition',[18 180 575.9999999999999 431.9999999999999], ...    'PaperUnits','points', ...    'Position',[25 59 750 481], ...    'Resize','off', ...    'Tag','CLTIDEMO');h1 = uimenu('Parent',h0, ...    'Label','&Plot Options', ...    'Tag','PlotOptionsMenu');h2 = uimenu('Parent',h1, ...    'Callback','cltidemo LineWidth', ...    'Label','&Set Line Width', ...    'Tag','SetLineWidth1');h1 = uimenu('Parent',h0, ...    'Label','&Help', ...    'Tag','Help');h2 = uimenu('Parent',h1, ...    'Callback','cltidemo Help', ...    'Label','&Contents', ...    'Tag','Help');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.25 0.25 0.5], ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Position',[0.6653333333333334 0.03950103950103951 0.3066666666666667 0.3534303534303536], ...    'Style','frame', ...    'Tag','FilterFrame');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.5 0.25 0.25], ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Position',[0.02666666666666667 0.03950103950103951 0.2666666666666667 0.3534303534303536], ...    'Style','frame', ...    'Tag','Frame1');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.5 0.25 0.25], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'HorizontalAlignment','left', ...    'ListboxTop',0, ...    'Position',[0.03866666666666668 0.340956340956341 0.2 0.03534303534303535], ...    'String','Amplitude = 1', ...    'Style','text', ...    'Tag','TextAmplitude');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[1 1 1], ...    'Callback','cltidemo ChangeAmp', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.2253333333333333 0.3097713097713097 0.05333333333333334 0.03851351351351352], ...    'String','1', ...    'Style','edit', ...    'Tag','EdAmplitude');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...    'Callback','cltidemo ChangeAmp', ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Max',4, ...    'Position',[0.03866666666666668 0.3097713097713097 0.18 0.03534303534303535], ...    'SliderStep',[0.125 0.25], ...    'Style','slider', ...    'Tag','SAmplitude', ...    'Value',1);h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.5 0.25 0.25], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'HorizontalAlignment','left', ...    'ListboxTop',0, ...    'Position',[0.03866666666666668 0.2577962577962578 0.2 0.03534303534303535], ...    'String','Frequency = 2*pi*0.1', ...    'Style','text', ...    'Tag','TextFreq');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[1 1 1], ...    'Callback','cltidemo ChangeFreq', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.2253333333333333 0.2266112266112266 0.05333333333333334 0.03851351351351352], ...    'String','0.1', ...    'Style','edit', ...    'Tag','EdFreq');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...    'Callback','cltidemo ChangeFreq', ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Max',1.5, ...    'Position',[0.03866666666666668 0.2266112266112266 0.18 0.03534303534303535], ...    'SliderStep',[0.06666666666666667 0.1333333333333333], ...    'Style','slider', ...    'Tag','SFreq', ...    'Value',0.1);h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.5 0.25 0.25], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'HorizontalAlignment','left', ...    'ListboxTop',0, ...    'Position',mat1, ...    'String','Phase = 0*pi', ...    'Style','text', ...    'Tag','TextPhase');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[1 1 1], ...    'Callback','cltidemo ChangePhase', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.2253333333333333 0.1434511434511435 0.05333333333333334 0.03851351351351352], ...    'String','0', ...    'Style','edit', ...    'Tag','EdPhase');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...    'Callback','cltidemo ChangePhase', ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Max',2, ...    'Min',-1, ...    'Position',[0.03866666666666668 0.1434511434511435 0.18 0.03534303534303535], ...    'SliderStep',[0.03333333333333333 0.06666666666666667], ...    'Style','slider', ...    'Tag','SPhase');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.5 0.25 0.25], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'HorizontalAlignment','left', ...    'ListboxTop',0, ...    'Position',[0.03866666666666668 0.0914760914760915 0.2 0.03534303534303535], ...    'String','DC Level = 0', ...    'Style','text', ...    'Tag','TextDC');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[1 1 1], ...    'Callback','cltidemo ChangeDC', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.2253333333333333 0.06029106029106029 0.05333333333333334 0.03851351351351352], ...    'String','0', ...    'Style','edit', ...    'Tag','EdDC');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...    'Callback','cltidemo ChangeDC', ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Max',2, ...    'Min',-2, ...    'Position',[0.03866666666666668 0.06029106029106029 0.18 0.03534303534303535], ...    'SliderStep',[0.05 0.125], ...    'Style','slider', ...    'Tag','SDC');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'Callback','cltidemo FilterChoice', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.6786666666666666 0.07068607068607068 0.28 0.03534303534303535], ...    'String',mat2, ...    'Style','popupmenu', ...    'Tag','FilterPopUp', ...    'UserData',mat3, ...    'Value',1);h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.25 0.25 0.5], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'HorizontalAlignment','left', ...    'ListboxTop',0, ...    'Position',mat4, ...    'String','Filter Choice:', ...    'Style','text', ...    'Tag','FTextChoice');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'Callback','cltidemo Answer', ...    'FontName','Helvetica', ...    'FontSize',7.999999999999999, ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.4106666666666667 0.0187110187110187 0.1786666666666667 0.04615384615384622], ...    'String','Theoretical Answer', ...    'Tag','Pushbutton1');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[1 1 1], ...    'Callback','cltidemo Userhn', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',mat7, ...    'String','[1,1,1,1]/4', ...    'Style','edit', ...    'Tag','FilterEdUserhn', ...    'Visible','off');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.25 0.25 0.5], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'HorizontalAlignment','left', ...    'ListboxTop',0, ...    'Position',[0.6786666666666666 0.1954261954261954 0.22 0.03534303534303535], ...    'String','Phase Slope = ', ...    'Style','text', ...    'Tag','FilterTextPhase', ...    'Visible','off');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[1 1 1], ...    'Callback','cltidemo FilterPhase', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.9053333333333334 0.1642411642411643 0.05333333333333334 0.03851351351351352], ...    'String','0', ...    'Style','edit', ...    'Tag','FilterEdPhase', ...    'Visible','off');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...    'Callback','cltidemo FilterPhase', ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Max',5, ...    'Min',-5, ...    'Position',[0.6786666666666666 0.1642411642411643 0.22 0.03534303534303535], ...    'SliderStep',[0.1 0.2], ...    'Style','slider', ...    'Tag','FilterSPhase', ...    'Visible','off');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.25 0.25 0.5], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'HorizontalAlignment','left', ...    'ListboxTop',0, ...    'Position',[0.6786666666666666 0.2785862785862787 0.22 0.03534303534303535], ...    'String','y(t) = x(t) * u(t)', ...    'Style','text', ...    'Tag','FilterTextFreq1');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[1 1 1], ...    'Callback','cltidemo FilterFreq1', ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',mat5, ...    'String','3', ...    'Style','edit', ...    'Tag','FilterEdFreq1');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...    'Callback','cltidemo FilterFreq1', ...    'FontName','Helvetica', ...    'ListboxTop',0, ...    'Max',0.4, ...    'Min',0.01, ...    'Position',mat6, ...    'SliderStep',[0.1282051282051282 0.2564102564102564], ...    'Style','slider', ...   'Tag','FilterSFreq1', ...    'Value',0.2);h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.25 0.25 0.5], ...    'FontName','Helvetica', ...    'FontWeight','bold', ...    'ForegroundColor',[1 1 1], ...    'ListboxTop',0, ...    'Position',[0.7246666666666667 0.3513513513513514 0.188 0.03534303534303541], ...    'String','Filter Specifications:', ...    'Style','text', ...    'Tag','TextforFilter');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.7 0.7 0.7], ...    'FontName','Helvetica', ...    'FontSize',10, ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.06533333333333334 0.9397089397089397 0.2266666666666667 0.03534303534303535], ...    'String','INPUT SIGNAL', ...    'Style','text', ...    'Tag','InputTitle');h1 = uicontrol('Parent',h0, ...    'Units','normalized', ...    'BackgroundColor',[0.7 0.7 0.7], ...    'FontName','Helvetica', ...    'FontSize',10, ...    'FontWeight','bold', ...    'ListboxTop',0, ...    'Position',[0.7053333333333334 0.9397089397089397 0.2266666666666667 0.03534303534303535], ...    'String','OUTPUT SIGNAL', ...    'Style','text', ...    'Tag','OutputTitle');h1 = axes('Parent',h0, ...    'Box','on', ...    'CameraUpVector',[0 1 0], ...    'CameraUpVectorMode','manual', ...    'Color',[1 1 1], ...    'ColorOrder',mat9, ...    'FontSize',9.999999999999998, ...   'FontWeight','bold', ...    'NextPlot','ReplaceChildren', ...    'Position',[0.06533333333333334 0.4968814968814971 0.2266666666666667 0.3846153846153846], ...    'Tag','InputAxis', ...    'XColor',[0 0 0], ...    'XGrid','on', ...    'XLim',[-5 30], ...    'XLimMode','manual', ...    'YColor',[0 0 0], ...    'YGrid','on', ...    'YLim',[-5 5], ...    'YLimMode','manual', ...    'YTick',[-5 -2.5 0 2.5 5], ...    'YTickMode','manual', ...    'ZColor',[0 0 0], ...    'ZGrid','on');h2 = text('Parent',h1, ...    'Units','normalized', ...

⌨️ 快捷键说明

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