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

📄 paowuxian.m

📁 这是抛物线用matlab实现的源代码
💻 M
字号:
function fig = paowuxian()
% 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 paowuxian

h0 = figure('Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'FileName','paowuxian.m', ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
	'Position',[1 29 800 534], ...
	'Tag','Fig1', ...
	'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 0 1], ...
	'FontSize',9, ...
	'FontWeight','bold', ...
	'ForegroundColor',[1 1 0], ...
	'ListboxTop',0, ...
	'Position',[489 370.5 103.5 24.75], ...
	'String','please  input  the  number  of  the  point', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[498.75 336 86.25 13.5], ...
	'Style','edit', ...
	'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 0 0], ...
	'FontSize',9, ...
	'FontWeight','bold', ...
	'ForegroundColor',[0.501960784313725 1 1], ...
	'ListboxTop',0, ...
	'Position',[489 303 101.25 24], ...
	'String','please input every point''s coordinate', ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 0.501960784313725 0.752941176470588], ...
	'Callback','qxnihe', ...
	'FontSize',12, ...
	'FontWeight','bold', ...
	'ForegroundColor',[1 1 0.501960784313725], ...
	'ListboxTop',0, ...
	'Position',[495.75 139.5 96.75 24.75], ...
	'String','曲线拟合过程', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 1 0], ...
	'FontSize',9, ...
	'ForegroundColor',[1 0 0], ...
	'ListboxTop',0, ...
	'Position',[522.75 354 27 13.5], ...
	'String','N', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0 0 1], ...
	'FontWeight','bold', ...
	'ForegroundColor',[1 1 0], ...
	'ListboxTop',0, ...
	'Position',[495.75 280.5 89.25 14.25], ...
	'String','Xi (i=1,2 .....N)', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 0], ...
	'FontSize',9, ...
	'FontWeight','bold', ...
	'ForegroundColor',[0 0 1], ...
	'ListboxTop',0, ...
	'Position',[497.25 217.5 89.25 14.25], ...
	'String','Yi (i=1,2,.....N)', ...
	'Style','text', ...
	'Tag','StaticText4');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 1 0.501960784313725], ...
	'Callback','nihehou', ...
	'FontSize',12, ...
	'FontWeight','bold', ...
	'ForegroundColor',[0 0.250980392156863 0.501960784313725], ...
	'ListboxTop',0, ...
	'Position',[495 102.75 96.75 24.75], ...
	'String','拟合后的曲线', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 0.501960784313725 0], ...
	'FontSize',9, ...
	'FontWeight','bold', ...
	'ForegroundColor',[0.501960784313725 0 0.250980392156863], ...
	'ListboxTop',0, ...
	'Position',[490.5 240.75 100.5 31.5], ...
	'String','please  input  the  Xi  coordinate  from  the  mouse', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0 1 1], ...
	'FontSize',9, ...
	'FontWeight','bold', ...
	'ForegroundColor',[1 0 0], ...
	'ListboxTop',0, ...
	'Position',[492.75 174.75 96.75 31.5], ...
	'String','please  input  the  Yi  coordinate  from  the  keyboard', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = axes('Parent',h0, ...
	'CameraUpVector',[0 1 0], ...
	'CameraUpVectorMode','manual', ...
	'CLim',[0 10], ...
	'CLimMode','manual', ...
	'Color',[1 1 1], ...
	'ColorOrder',mat1, ...
	'Position',[0.0275 0.06367041198501873 0.7775 0.9119850187265918], ...
	'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.99194847020934 -0.4938271604938258 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.4025764895330112 4.979423868312758 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',mat2, ...
	'Tag','Axes1Text2', ...
	'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','center', ...
	'Position',[4.99194847020934 10.1440329218107 9.160254037844386], ...
	'Tag','Axes1Text1', ...
	'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.752941176470588], ...
	'Callback',mat3, ...
	'FontSize',12, ...
	'FontWeight','bold', ...
	'ForegroundColor',[0 1 0], ...
	'ListboxTop',0, ...
	'Position',[495.75 66.75 94.5 25.5], ...
	'String','清屏', ...
	'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0 0.250980392156863], ...
	'Callback',mat4, ...
	'FontSize',12, ...
	'FontWeight','bold', ...
	'ForegroundColor',[1 0.501960784313725 1], ...
	'ListboxTop',0, ...
	'Position',[495.75 28.5 94.5 25.5], ...
	'String','返回主界面', ...
	'Tag','Pushbutton2');
if nargout > 0, fig = h0; end

⌨️ 快捷键说明

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