📄 bezier.m
字号:
function fig = bezier()
% 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 bezier
h0 = figure('Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'FileName','E:\图形学\图形学2\bezier.m', ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'Position',[1 29 800 534], ...
'Tag','Fig1', ...
'ToolBar','none');
h1 = axes('Parent',h0, ...
'CameraUpVector',[0 1 0], ...
'CameraUpVectorMode','manual', ...
'Color',[1 1 1], ...
'ColorOrder',mat1, ...
'Position',[0.035 0.05617977528089888 0.775 0.9063670411985019], ...
'Tag','Axes1', ...
'XColor',[0 0 0], ...
'XLim',[0 10], ...
'XLimMode','manual', ...
'YColor',[0 0 0], ...
'YLim',[0 10], ...
'YLimMode','manual', ...
'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[4.991922455573506 -0.4968944099378891 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.4038772213247173 4.968944099378882 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',[-0.468497576736672 10.39337474120083 9.160254037844386], ...
'Tag','Axes1Text2', ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',mat2, ...
'Tag','Axes1Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 0 1], ...
'Callback','bezier2', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[1 1 0], ...
'ListboxTop',0, ...
'Position',[508.5 351.75 65.25 28.5], ...
'String','Bezier2曲线', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 1 0], ...
'Callback','bezier3', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[1 0 0], ...
'ListboxTop',0, ...
'Position',[510 306 65.25 28.5], ...
'String','Bezier3曲线', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 0 1], ...
'Callback','toutu', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[0 1 1], ...
'ListboxTop',0, ...
'Position',[508.5 259.5 65.25 28.5], ...
'String','特征函数图象', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 0], ...
'Callback','touxing', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[0 0.501960784313725 0.501960784313725], ...
'ListboxTop',0, ...
'Position',[510.75 211.5 65.25 28.5], ...
'String','特征函数性质', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 0 0.501960784313725], ...
'Callback','grid on', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 1], ...
'ListboxTop',0, ...
'Position',[509.25 165 65.25 28.5], ...
'String','grid on', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0 1 1], ...
'Callback','grid off', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[1 0 1], ...
'ListboxTop',0, ...
'Position',[507.75 117.75 65.25 28.5], ...
'String','grid off', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 0.501960784313725 0], ...
'Callback',mat3, ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[0.501960784313725 1 0], ...
'ListboxTop',0, ...
'Position',[507.75 73.5 65.25 28.5], ...
'String','清屏', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.501960784313725 0.501960784313725 0.250980392156863], ...
'Callback','close', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor',[1 1 0.501960784313725], ...
'ListboxTop',0, ...
'Position',[507 28.5 65.25 28.5], ...
'String','返回主界面', ...
'Tag','Pushbutton1');
if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -