📄 guifigure.m
字号:
function fig = guifigure()
% 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 guifigure
h0 = figure('Units','normalized', ...
'BackingStore','off', ...
'Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'CreateFcn','guidemo SetFigureSize', ...
'MenuBar','none', ...
'Name','My GUI', ...
'NumberTitle','off', ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'Position',[0.04166666666666666 0.1238425925925926 0.8993055555555555 0.8009259259259259], ...
'Tag','Figure', ...
'ToolBar','none', ...
'UserData',mat1);
h1 = uimenu('Parent',h0, ...
'Label','&Options', ...
'Tag','Options');
h2 = uimenu('Parent',h1, ...
'Callback','guidemo Grid', ...
'Label','&Grid', ...
'Tag','Grid');
h2 = uimenu('Parent',h1, ...
'Callback','guidemo Zoom', ...
'Label','&Zoom', ...
'Tag','Zoom');
h2 = uimenu('Parent',h1, ...
'Callback','guidemo HidePlot', ...
'Label','&Hide Plot', ...
'Separator','on', ...
'Tag','HidePlot');
h1 = uimenu('Parent',h0, ...
'Callback','guidemo About', ...
'Label','&About', ...
'Tag','About');
h1 = axes('Parent',h0, ...
'Box','on', ...
'CameraUpVector',[0 1 0], ...
'CameraUpVectorMode','manual', ...
'Color',[1 1 1], ...
'ColorOrder',mat2, ...
'Position',[0.075 0.1 0.6 0.8], ...
'Tag','Axis', ...
'XColor',[0 0 0], ...
'YColor',[0 0 0], ...
'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4983870967741936 -0.0433996383363473 9.160254037844386], ...
'Tag','Axes1Text4', ...
'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[-0.04677419354838711 0.4972875226039782 9.160254037844386], ...
'Rotation',90, ...
'Tag','Axes1Text3', ...
'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','right', ...
'Position',mat3, ...
'Tag','Axes1Text2', ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4988399071925754 1.018276762402089 9.160254037844386], ...
'Tag','Axes1Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'Callback','guidemo ButtonPush', ...
'ListboxTop',0, ...
'Position',[0.7638888888888888 0.7791666666666665 0.15 0.075], ...
'String','New Plot', ...
'Tag','NewPlotButton');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Callback','guidemo ChangeColor', ...
'Enable','off', ...
'ListboxTop',0, ...
'Position',[0.7638888888888888 0.6187499999999999 0.15 0.05], ...
'String',mat4, ...
'Style','popupmenu', ...
'Tag','ColorPopupMenu', ...
'UserData',mat5, ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'ListboxTop',0, ...
'Position',mat6, ...
'Style','frame', ...
'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[0.7629340277777776 0.3626373626373626 0.1519097222222222 0.1599511599511599], ...
'String',mat7, ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'ListboxTop',0, ...
'Style','text', ...
'Tag','Handles', ...
'UserData',mat8, ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','guidemo SliderChanged', ...
'ListboxTop',0, ...
'Max',20, ...
'Position',[0.7716145833333332 0.188034188034188 0.1345486111111111 0.0293040293040293], ...
'SliderStep',[0.05 0.2], ...
'Style','slider', ...
'Tag','Slider', ...
'Value',10);
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'FontUnits','normalized', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',0.1, ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[0.7629340277777776 0.3626373626373626 0.1519097222222222 0.1599511599511599], ...
'String',mat9, ...
'Style','text', ...
'Tag','TextBoxText');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'FontUnits','normalized', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',0.6, ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[0.8236979166666666 0.1294261294261294 0.03038194444444444 0.04639804639804639], ...
'String','10', ...
'Style','text', ...
'Tag','SliderText');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'FontUnits','normalized', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontSize',0.4, ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[0.07899305555555555 0.9133089133089133 0.5824652777777778 0.03907203907203907], ...
'String','This GUI demo illustrates animation and the use of many controls.', ...
'Style','text', ...
'Tag','StaticText2');
if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -