function fig = newton()
% 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 newton

h0 = figure('Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'FileName','A:\newton.m', ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
	'Position',[134 108 513 453], ...
	'Tag','Fig1', ...
	'ToolBar','none');
h1 = axes('Parent',h0, ...
	'Units','pixels', ...
	'CameraUpVector',[0 1 0], ...
	'CameraUpVectorMode','manual', ...
	'Color',[1 1 1], ...
	'ColorOrder',mat1, ...
	'Position',[45 69 435 252], ...
	'Tag','Plot', ...
	'XColor',[0 0 0], ...
	'XLim',[-2 2], ...
	'XLimMode','manual', ...
	'YColor',[0 0 0], ...
	'YLim',[-1 2.5], ...
	'YLimMode','manual', ...
	'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','center', ...
	'Position',[-0.00921658986175089 -1.334661354581673 17.32050807568877], ...
	'Tag','Axes1Text4', ...
	'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','center', ...
	'Position',[-2.304147465437788 0.7290836653386457 17.32050807568877], ...
	'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',[-2.414746543778802 4.340637450199204 17.32050807568877], ...
	'Tag','Axes1Text2', ...
	'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
	'Color',[0 0 0], ...
	'HandleVisibility','off', ...
	'HorizontalAlignment','center', ...
	'Position',[-0.00921658986175089 2.597609561752988 17.32050807568877], ...
	'Tag','Axes1Text1', ...
	'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h2 = line('Parent',h1, ...
	'Color',[0 0 0], ...
	'Tag','PlotLine3', ...
	'XData',[-2 2], ...
	'YData',[0 0]);
h2 = line('Parent',h1, ...
	'Color',[0 0 0], ...
	'Tag','PlotLine2', ...
	'XData',[0 0], ...
	'YData',[-1 2.5]);
h2 = line('Parent',h1, ...
	'Color',[0 0 1], ...
	'Tag','PlotLine1', ...
	'XData',mat2, ...
	'YData',mat3);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 0.501960784313725], ...
	'FontWeight','bold', ...
	'ListboxTop',0, ...
	'Position',[81.75 252 43.5 16.5], ...
	'String','Function', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','newtonswitch(''range'')', ...
	'ListboxTop',0, ...
	'Position',[141.75 252 216 18.75], ...
	'String','x^2-1', ...
	'Style','edit', ...
	'Tag','Function');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.329411764705882 0.627450980392157 0.56078431372549], ...
	'Callback','newtonswitch(''Refresh'')', ...
	'FontWeight','bold', ...
	'ForegroundColor',[0.501960784313725 0 0], ...
	'ListboxTop',0, ...
	'Position',[32.25 258 45.75 66.75], ...
	'String','Refresh', ...
	'Tag','Refresh');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 0.501960784313725], ...
	'FontWeight','bold', ...
	'ListboxTop',0, ...
	'Position',[160.5 281.25 32.25 16.5], ...
	'String','X Max', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','newtonswitch(''range'')', ...
	'ListboxTop',0, ...
	'Position',[195.75 278.25 40.5 18.75], ...
	'String','2', ...
	'Style','edit', ...
	'Tag','XMax');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','newtonswitch(''range'')', ...
	'ListboxTop',0, ...
	'Position',[118.5 279 40.5 18.75], ...
	'String','-2', ...
	'Style','edit', ...
	'Tag','XMin');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 0.501960784313725], ...
	'FontWeight','bold', ...
	'ListboxTop',0, ...
	'Position',[82.5 281.25 32.25 16.5], ...
	'String','X Min', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 0.501960784313725], ...
	'FontWeight','bold', ...
	'ListboxTop',0, ...
	'Position',[82.5 309 32.25 16.5], ...
	'String','Y Min', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','newtonswitch(''range'')', ...
	'ListboxTop',0, ...
	'Position',[119.25 308.25 40.5 18.75], ...
	'String','-1', ...
	'Style','edit', ...
	'Tag','YMin');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','newtonswitch(''range'')', ...
	'ListboxTop',0, ...
	'Position',[196.5 306.75 40.5 18.75], ...
	'String','2.5', ...
	'Style','edit', ...
	'Tag','YMax');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 0.501960784313725], ...
	'FontWeight','bold', ...
	'ListboxTop',0, ...
	'Position',[161.25 309 32.25 16.5], ...
	'String','Y Max', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 0 0], ...
	'Callback','newtonswitch(''Next'')', ...
	'ListboxTop',0, ...
	'Position',[251.25 282.75 105 42.75], ...
	'String','Next', ...
	'Tag','Next');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','newtonswitch(''newtslider'')', ...
	'ListboxTop',0, ...
	'Min',-1, ...
	'Position',[20.25 15.75 350.25 18.75], ...
	'String','newtslider', ...
	'Style','slider', ...
	'Tag','newtslider');
if nargout > 0, fig = h0; end
