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

h0 = figure('Units','points', ...
	'Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'DoubleBuffer','on', ...
	'FileName','/users/math/mguest49/complete/PP.m', ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
	'Position',[236.3294117647059 188.8941176470588 512.4705882352941 396.4235294117647], ...
	'Tag','Fig1', ...
	'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'ListboxTop',0, ...
	'Position',mat1, ...
	'Style','frame', ...
	'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'ListboxTop',0, ...
	'Position',mat2, ...
	'Style','frame', ...
	'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'ListboxTop',0, ...
	'Position',mat3, ...
	'Style','frame', ...
	'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'ListboxTop',0, ...
	'Position',[22.87058823529412 10.16470588235294 352.3764705882353 57.6], ...
	'Style','frame', ...
	'Tag','Frame1');
h1 = axes('Parent',h0, ...
	'Units','points', ...
	'ButtonDownFcn','global lh,PPmod(''start'')', ...
	'CameraUpVector',[0 1 0], ...
	'CameraUpVectorMode','manual', ...
	'Color',[1 1 1], ...
	'ColorOrder',mat4, ...
	'Position',[25.41176470588235 88.94117647058823 344.7529411764706 228.7058823529412], ...
	'Tag','plot_win', ...
	'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.4975369458128079 -0.07434944237918217 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.05911330049261084 0.4944237918215613 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.07635467980295567 1.342007434944238 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',mat5, ...
	'Tag','Axes1Text1', ...
	'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'ListboxTop',0, ...
	'Max',2, ...
	'Min',1, ...
	'Position',[393.035294117647 348.1411764705882 99.95294117647059 29.64705882352941], ...
	'String',mat6, ...
	'Style','popupmenu', ...
	'Tag','continuity', ...
	'TooltipString','Choose continuity of mesh', ...
	'Value',2);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'ListboxTop',0, ...
	'Max',3, ...
	'Min',1, ...
	'Position',[393.035294117647 311.7176470588235 99.95294117647059 29.64705882352941], ...
	'String',mat7, ...
	'Style','popupmenu', ...
	'Tag','degree', ...
	'TooltipString','Choose degree of mesh', ...
	'Value',2);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','PPmod(''create'')', ...
	'ListboxTop',0, ...
	'Position',[393.035294117647 238.8705882352941 99.95294117647059 30.49411764705882], ...
	'String','create', ...
	'Tag','create', ...
	'TooltipString','Create a mesh', ...
	'UserData',mat8);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','PPmod(''reset''),cla,pause(2),%clf', ...
	'ListboxTop',0, ...
	'Position',[393.035294117647 16.09411764705882 99.95294117647059 29.64705882352941], ...
	'String','clear', ...
	'Tag','Pushbutton2', ...
	'TooltipString','Clear graph');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','PPmod(''choose_fcn'')', ...
	'ListboxTop',0, ...
	'Max',4, ...
	'Min',1, ...
	'Position',[27.10588235294118 15.24705882352941 94.87058823529412 21.17647058823529], ...
	'String',mat9, ...
	'Style','popupmenu', ...
	'Tag','function', ...
	'TooltipString','Choose a function', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','PPmod(''compute_error'')', ...
	'ListboxTop',0, ...
	'Max',3, ...
	'Min',1, ...
	'Position',[139.7647058823529 14.4 93.17647058823529 20.32941176470588], ...
	'String',mat10, ...
	'Style','popupmenu', ...
	'Tag','norm', ...
	'TooltipString','Choose norm', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'ListboxTop',0, ...
	'Position',mat11, ...
	'Style','text', ...
	'Tag','error');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','PPmod(''interpolate'')', ...
	'ListboxTop',0, ...
	'Position',[393.035294117647 54.21176470588235 99.95294117647059 30.49411764705882], ...
	'String','interpolate', ...
	'Tag','Pushbutton3', ...
	'TooltipString','Define a function or a mesh first');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','PPmod(''uniform'')', ...
	'ListboxTop',0, ...
	'Position',mat12, ...
	'String','uniform mesh', ...
	'Tag','Pushbutton4', ...
	'TooltipString','Create a mesh first');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','PPmod(''refine'')', ...
	'ListboxTop',0, ...
	'Position',mat13, ...
	'String','refine mesh', ...
	'Tag','Pushbutton5', ...
	'TooltipString','Create a mesh first');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'ListboxTop',0, ...
	'Max',3, ...
	'Min',1, ...
	'Position',mat14, ...
	'String',mat15, ...
	'Style','popupmenu', ...
	'Tag','mod_type', ...
	'TooltipString','Create a mesh first', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'Callback','set(gcbo,''Userdata'',ceil(20*get(gcbo,''Value'')))', ...
	'ListboxTop',0, ...
	'Min',0.05, ...
	'Position',[393.035294117647 275.2941176470588 99.95294117647059 30.49411764705882], ...
	'Style','slider', ...
	'Tag','ni', ...
	'TooltipString','Number of mesh pieces', ...
	'Value',0.3);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'FontSize',20, ...
	'ListboxTop',0, ...
	'Position',[48.28235294117647 358.3058823529412 300.7058823529412 25.41176470588235], ...
	'String','Piecewise Polynomial lab', ...
	'Style','text', ...
	'Tag','heading');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'ListboxTop',0, ...
	'Position',[249.8823529411765 49.12941176470588 116.0470588235294 10.16470588235294], ...
	'Style','text', ...
	'Tag','dy');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.7019609999999999 0.7019609999999999 0.7019609999999999], ...
	'ListboxTop',0, ...
	'Position',mat16, ...
	'Style','text', ...
	'Tag','d2y');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','PPmod(''choose_my_fcn'')', ...
	'ListboxTop',0, ...
	'Position',[27.95294117647059 44.04705882352941 93.17647058823529 19.48235294117647], ...
	'Style','edit', ...
	'Tag','my_fcn', ...
	'TooltipString','Define your own function');
if nargout > 0, fig = h0; end
