% Create an options file that causes the published document % to capture window decorations: function_options.format='html'; function_options.figureSnapMethod='entireGUIWindow'; % Publish the script using the options file: publish('LinearRegression.m',function_options); % View the output in the MATLAB Web browser web('html/LinearRegression.html')