function integrationhelp figNumber=figure( ... 'Name','Help for Numerical Integration program', ... 'units','normalized',... 'Color', [1 1 1], ... 'pos',[.4 .4 .5 .5],... 'NumberTitle','off', ... 'Visible','on'); %function explanations----------------------------- left=.01; bottom=.8; width=.9; height=.12; pos = [left bottom width height]; string = 'Subdivisions = k*2^n, where k is the value of Subdiv. and n goes from 1 to 10.'; h = uicontrol('Style','Text','Units','normalized','BackgroundColor', [1 1 1],'Position',pos,'String',string); pos = [left bottom-.15 width height]; string = {'Constant c is used in the functions 1/[d+sin(cx)] and e^(-cx) * cos(x).'}; h = uicontrol('Style','Text','Units','normalized','BackgroundColor', [1 1 1],'Position',pos,'String',string); pos = [left bottom-.3 width height]; string = {'Constant d is used in the function 1/[d+sin(cx)]'}; h = uicontrol('Style','Text','Units','normalized','BackgroundColor', [1 1 1],'Position',pos,'String',string); pos = [left bottom-.45 width height]; string = {'To execute the integration, select all the parameters and click on either Midpoint, Trapezoid, or Simpson''s '}; h = uicontrol('Style','Text','Units','normalized','BackgroundColor', [1 1 1],'Position',pos,'String',string); pos = [left bottom-.74 .45 .05]; string = {'Program by Rob O''Connell, 2001'}; h = uicontrol('Style','Text','Units','normalized','Position',pos,'String',string); %Close Button--------------------------------------- labelStr='Close'; callbackStr='close(gcf)'; closeHndl=uicontrol( ... 'Style','push', ... 'Units','normalized', ... 'position',[.82 .05 .15 .08], ... 'string',labelStr, ... 'call',callbackStr);