function fig = pcurve2d() % 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. % % 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. load pcurve2d h0 = figure('Color',[0.8 0.8 0.8], ... 'Colormap',mat0, ... 'Name','2D parametric curves and vector fields', ... 'PaperOrientation','landscape', ... 'PaperPosition',mat1, ... 'PaperPositionMode','auto', ... 'PointerShapeCData',mat2, ... 'Position',[1 1 640 442], ... 'Tag','Fig1'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[360 285 75 15], ... 'String','cos(t)', ... 'Style','edit', ... 'Tag','xtpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[330 300 90 15], ... 'String','Parametrized Curve', ... 'Style','text', ... 'Tag','StaticText1'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[330 285 30 15], ... 'String','x(t)=', ... 'Style','text', ... 'Tag','StaticText2'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[330 270 30 15], ... 'String','y(t)=', ... 'Style','text', ... 'Tag','StaticText2'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[360 270 75 15], ... 'String','sin(t)', ... 'Style','edit', ... 'Tag','ytpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[330 240 30 15], ... 'String','xmin', ... 'Style','text', ... 'Tag','StaticText10'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[360 240 30 15], ... 'String','-1.5', ... 'Style','edit', ... 'Tag','xminpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[420 240 30 15], ... 'String','1.5', ... 'Style','edit', ... 'Tag','xmaxpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[390 240 30 15], ... 'String','xmax', ... 'Style','text', ... 'Tag','StaticText3'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[360 225 30 15], ... 'String','-1.5', ... 'Style','edit', ... 'Tag','yminpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[330 225 30 15], ... 'String','ymin', ... 'Style','text', ... 'Tag','StaticText4'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[420 225 30 15], ... 'String','1.5', ... 'Style','edit', ... 'Tag','ymaxpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[390 225 30 15], ... 'String','ymax', ... 'Style','text', ... 'Tag','StaticText5'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[360 210 30 15], ... 'String','0', ... 'Style','edit', ... 'Tag','tminpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[330 210 30 15], ... 'String','tmin', ... 'Style','text', ... 'Tag','StaticText6'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[420 210 30 15], ... 'String','2*pi', ... 'Style','edit', ... 'Tag','tmaxpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'ListboxTop',0, ... 'Position',[390 210 30 15], ... 'String','tmax', ... 'Style','text', ... 'Tag','StaticText7'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback',mat3, ... 'ListboxTop',0, ... 'Position',[330 165 90 15], ... 'String','Graph the curve', ... 'Tag','Pushbutton1'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','delete(findobj(''Tag'',''curve''));', ... 'ListboxTop',0, ... 'Position',[435 165 30 15], ... 'String','Clear', ... 'Tag','Pushbutton2'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[330 75 90 15], ... 'String','Vector field', ... 'Style','text', ... 'Tag','StaticText8'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[330 60 30 15], ... 'String','Fx=', ... 'Style','text', ... 'Tag','StaticText9'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[330 45 30 15], ... 'String','Fy=', ... 'Style','text', ... 'Tag','StaticText9'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[360 60 75 15], ... 'String','-y', ... 'Style','edit', ... 'Tag','fxpcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[570 75 75 15], ... 'Style','edit', ... 'Tag','heck'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[360 45 75 15], ... 'String','x', ... 'Style','edit', ... 'Tag','fypcurve'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback',mat4, ... 'ListboxTop',0, ... 'Position',[330 15 90 15], ... 'String','Plot the vector field', ... 'Tag','Pushbutton3'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','delete(findobj(''Tag'',''vfield''));', ... 'ListboxTop',0, ... 'Position',[435 15 30 15], ... 'String','Clear', ... 'Tag','Pushbutton4'); h1 = axes('Parent',h0, ... 'CameraUpVector',[0 1 0], ... 'CameraUpVectorMode','manual', ... 'Color',[1 1 1], ... 'ColorOrder',mat5, ... 'Position',[0.0625 0.0904977375565611 0.6078125000000001 0.8574660633484164], ... 'Tag','Axes1', ... 'XColor',[0 0 0], ... 'XLim',[-1.5 1.5], ... 'XLimMode','manual', ... 'YColor',[0 0 0], ... 'YLim',[-1.5 1.5], ... 'YLimMode','manual', ... 'ZColor',[0 0 0]); h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',[-0.007731958762886348 -1.690476190476191 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',mat6, ... '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',mat7, ... 'Tag','Axes1Text2', ... 'Visible','off'); set(get(h2,'Parent'),'ZLabel',h2); h2 = text('Parent',h1, ... 'Color',[0 0 0], ... 'HandleVisibility','off', ... 'HorizontalAlignment','center', ... 'Position',mat8, ... 'Tag','Axes1Text1', ... 'VerticalAlignment','bottom'); set(get(h2,'Parent'),'Title',h2); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback',mat9, ... 'ListboxTop',0, ... 'Position',[330 135 90 15], ... 'String','Velocity vectors', ... 'Tag','Pushbutton5'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback',mat10, ... 'ListboxTop',0, ... 'Position',[330 105 90 15], ... 'String','Acceleration vectors', ... 'Tag','Pushbutton5'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','delete(findobj(''Tag'',''velvec''));', ... 'ListboxTop',0, ... 'Position',[435 135 30 15], ... 'String','Clear', ... 'Tag','Pushbutton2'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'Callback','delete(findobj(''Tag'',''accvec''));', ... 'ListboxTop',0, ... 'Position',[435 105 30 15], ... 'String','Clear', ... 'Tag','Pushbutton2'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ... 'ListboxTop',0, ... 'Position',[360 195 30 15], ... 'String','tscl', ... 'Style','text', ... 'Tag','StaticText11'); h1 = uicontrol('Parent',h0, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'ListboxTop',0, ... 'Position',[390 195 30 15], ... 'String','pi/16', ... 'Style','edit', ... 'Tag','tsclpcurve'); if nargout > 0, fig = h0; end