function SL38_displayGraphOfFunction
 
screenSize = get(groot, 'ScreenSize');
figXSize = 550;
figYSize = 350;
 
hFig = figure(...
   'Units', 'pixels', ...
   'Position', ...
   [screenSize(3)/2-figXSize/2, ...
   screenSize(4)/2-figYSize/2, ...
   figXSize, figYSize], ...
   'Name', 'Example', ...
   'Color', [0.8 0.8 0.8]);
 
uicontrol(...
   'Units', 'normalized', ...
   'Position', [0.1 0.1 0.15 0.1], ...
   'Style', 'pushbutton', ...
   'String', 'End', ...
   'Callback', @(src, event)endFunction(hFig), ...
   'ForegroundColor', [0.7 0.8 0.8], ...
   'BackgroundColor', [0.1 0.4 1], ...
   'Fontsize', 9);

hEdit = uicontrol(...
   'Units', 'normalized', ...
   'Position',[0.05 0.45 0.25 0.1], ...
   'Style', 'edit', ...
   'String','sin(0:0.01:2*pi)', ...
   'ForegroundColor','black', ...
   'BackgroundColor','w', ...
   'Fontweight','bold', ...
   'FontSize',11);
 
hAxes = axes(...
   'Units','normalized', ...
   'Position',[0.35 0.1 0.625 0.85], ...
   'Color',[0.98 0.98 0.98], ...
   'Box','on');
 
uicontrol(...
   'Units', 'normalized', ...
   'Position', [0.1 0.75 0.15 0.1], ...
   'Style', 'pushbutton', ...
   'String', 'Evaluate!', ...
   'Callback', ...
   @(src, event)evaluateExpression(hEdit,hAxes), ...
   'ForegroundColor', 'white', ...
   'BackgroundColor', [0.1 0.7 0.2], ...
   'FontWeight', 'bold', ...
   'FontSize', 11);
end