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

📄 gui.m

📁 很多matlab的源代码
💻 M
📖 第 1 页 / 共 2 页
字号:
function fig = ltigui()% 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.%% 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.load guih0 = figure('Units','characters', ...'Color',[0.8 0.8 0.8], ...'Colormap',mat0, ...'CloseRequestFcn','cltidemo CloseRequestFcn', ...'CreateFcn','cltidemo SetFigureSize', ...'DoubleBuffer','on', ...'MenuBar','none', ...'Name','LTI (Linear Time Invariant) System Demo ver 1.11', ...'NumberTitle','off', ...'PaperPosition',[18 180 575.9999999999999 431.9999999999999], ...'PaperUnits','points', ...'PointerShapeCData',mat1, ...'Position',[27.2 11 150 37], ...'ResizeFcn','cltidemo ResizeFcn', ...'Tag','CLTIDEMO');h1 = uimenu('Parent',h0, ...'Callback','', ...'Label','&Plot Options', ...'Tag','PlotOptionsMenu');h2 = uimenu('Parent',h1, ...'Callback','cltidemo LineWidth', ...'Label','&Set Line Width', ...'Tag','SetLineWidth1');h1 = uimenu('Parent',h0, ...'Callback','', ...'Label','&Help', ...'Tag','Help');h2 = uimenu('Parent',h1, ...'Callback','cltidemo Help', ...'Label','&Contents', ...'Tag','Help');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.25 0.25 0.5], ...'ListboxTop',0, ...'Position',[99.80000000000001 1.461538461538462 46 13.07692307692308], ...'Style','frame', ...'Tag','FilterFrame', ...'TooltipString','Filter Specifications');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.5 0.25 0.25], ...'ListboxTop',0, ...'Position',[4 1.461538461538462 40 13.07692307692308], ...'Style','frame', ...'Tag','Frame1', ...'TooltipString','Input Signal Specifications');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.5 0.25 0.25], ...'FontSize',5.94, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',mat3, ...'String','Amplitude = ', ...'Style','text', ...'Tag','TextAmplitude');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo ChangeAmp', ...'FontSize',4.2075, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[33.8 11.46153846153846 8 1.425], ...'String','1', ...'Style','edit', ...'Tag','EdAmplitude');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...'Callback','cltidemo ChangeAmp', ...'ListboxTop',0, ...'Max',4, ...'Position',[5.800000000000001 11.46153846153846 27 1.307692307692308], ...'SliderStep',[0.125 0.25], ...'Style','slider', ...'Tag','SAmplitude', ...'Value',1);h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.5 0.25 0.25], ...'FontSize',5.61, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',[5.800000000000001 9.538461538461538 30 1.307692307692308], ...'String','Frequency = ', ...'Style','text', ...'Tag','TextFreq');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo ChangeFreq', ...'FontSize',4.207500000000001, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[33.8 8.384615384615385 8 1.425], ...'String','0.1', ...'Style','edit', ...'Tag','EdFreq');% 'Max',1.5, ... % 'SliderStep',[0.06666666666666667 0.1333333333333333], ...h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...'Callback','cltidemo ChangeFreq', ...'ListboxTop',0, ...'Min',10, ...'Max',100, ... 'Position',[5.800000000000001 8.384615384615385 27 1.307692307692308], ...'SliderStep',[0.01 0.05], ...'Style','slider', ...'Tag','SFreq', ...'Value',0.1);h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.5 0.25 0.25], ...'FontSize',5.61, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',[5.800000000000001 6.461538461538462 30 1.307692307692308], ...'String','Phase = ', ...'Style','text', ...'Tag','TextPhase');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo ChangePhase', ...'FontSize',4.455, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[33.8 5.307692307692308 8 1.425], ...'String','0', ...'Style','edit', ...'Tag','EdPhase');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...'Callback','cltidemo ChangePhase', ...'ListboxTop',0, ...'Max',2, ...'Min',-1, ...'Position',[5.800000000000001 5.307692307692308 27 1.307692307692308], ...'SliderStep',[0.03333333333333333 0.06666666666666667], ...'Style','slider', ...'Tag','SPhase');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.5 0.25 0.25], ...'FontSize',5.94, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',[5.800000000000001 3.384615384615385 30 1.307692307692308], ...'String','DC Level = ', ...'Style','text', ...'Tag','TextDC');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo ChangeDC', ...'FontSize',3.96, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[33.8 2.230769230769231 8 1.425], ...'String','0', ...'Style','edit', ...'Tag','EdDC');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...'Callback','cltidemo ChangeDC', ...'ListboxTop',0, ...'Max',2, ...'Min',-2, ...'Position',[5.800000000000001 2.230769230769231 27 1.307692307692308], ...'SliderStep',[0.05 0.125], ...'Style','slider', ...'Tag','SDC');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'Callback','cltidemo FilterChoice', ...'FontSize',5.7375, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[101.8 2.615384615384615 42 1.307692307692308], ...'String',mat4, ...'Style','popupmenu', ...'Tag','FilterPopUp', ...'UserData',mat5, ...'Value',1);h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.25 0.25 0.5], ...'FontSize',6.375, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',[101.8 3.923076923076923 16 1.307692307692308], ...'String','Filter Choice:', ...'Style','text', ...'Tag','FTextChoice');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'Callback','cltidemo Answer', ...'FontSize',5.7, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[61.6 0.692307692307692 26.8 1.70769230769231], ...'String','Theoretical Answer', ...'Tag','Pushbutton1');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.25 0.25 0.5], ...'FontSize',5.61, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',[101.8 10.30769230769231 33 1.307692307692308], ...'String','y(t) = x(t) * u(t)', ...'Style','text', ...'Tag','FilterTextFreq1');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo FilterFreq1', ...'FontSize',4.207500000000001, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[135.8 9.153846153846155 8 1.425], ...'String','3', ...'Style','edit', ...'Tag','FilterEdFreq1');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...'Callback','cltidemo FilterFreq1', ...'ListboxTop',0, ...'Min',10.0, ...'Max',100, ...'Position',[101.8 9.153846153846155 33 1.307692307692308], ...'SliderStep',[0.01 0.05], ...'Style','slider', ...'Tag','FilterSFreq1', ...'Value',0.2);h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo Userhn', ...'FontSize',6.600000000000001, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[101.8 9.153846153846155 42 1.425], ...'String','[1,1,1,1]/4', ...'Style','edit', ...'Tag','FilterEdUserhn', ...'Visible','off');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.25 0.25 0.5], ...'FontSize',5.61, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',[101.8 7.230769230769231 33 1.307692307692308], ...'String','Phase Slope = ', ...'Style','text', ...'Tag','FilterTextPhase', ...'Visible','off');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo FilterPhase', ...'FontSize',4.207500000000001, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[135.8 6.076923076923078 8 1.425], ...'String','0', ...'Style','edit', ...'Tag','FilterEdPhase', ...'Visible','off');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...'Callback','cltidemo FilterPhase', ...'FontSize',3.15, ...'ListboxTop',0, ...'Max',1, ...'Min',-1, ...'Position',[101.8 6.076923076923078 33 1.307692307692308], ...'SliderStep',[0.01 0.02], ...'Style','slider', ...'Tag','FilterSPhase', ...'Visible','off');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.25 0.25 0.5], ...'FontSize',5.61, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'HorizontalAlignment','left', ...'ListboxTop',0, ...'Position',[101.8 7.230769230769231 33 1.307692307692308], ...'String','Bandwidth = ', ...'Style','text', ...'Tag','FilterBWText', ...'Visible','off');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[1 1 1], ...'Callback','cltidemo FilterBW', ...'FontSize',4.207500000000001, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[135.8 6.076923076923078 8 1.425], ...'String','20', ...'Style','edit', ...'Tag','FilterEdBW', ...'Visible','off');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...'Callback','cltidemo FilterBW', ...'FontSize',3.15, ...'ListboxTop',0, ...'Max',50, ...'Min',10, ...'Value',20,...'Position',[101.8 6.076923076923078 33 1.307692307692308], ...'SliderStep',[0.01 0.02], ...'Style','slider', ...'Tag','FilterSBW', ...'Visible','off');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.25 0.25 0.5], ...'FontSize',5.764705882352942, ...'FontWeight','bold', ...'ForegroundColor',[1 1 1], ...'ListboxTop',0, ...'Position',[108.7 13 28.2 1.30769230769231], ...'String','Filter Specifications:', ...'Style','text', ...'Tag','TextforFilter');h1 = uicontrol('Parent',h0, ...'Units','characters', ...'BackgroundColor',[0.7 0.7 0.7], ...'FontSize',6.375, ...'FontWeight','bold', ...'ListboxTop',0, ...'Position',[9.800000000000001 34.76923076923077 34 1.307692307692308], ...'String','INPUT SIGNAL', ...'Style','text', ...'Tag','InputTitle');h1 = uicontrol('Parent',h0, ...'Units','characters', ...

⌨️ 快捷键说明

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