%% Save Profiling Results to Specified Folder
% Profile your code and save the results to a subfolder within your current folder.
% Turn on the Profiler, and then create a multiline plot.

profile on
plot(magic(5))

% Create HTML files from the profiling results, and save the files to the myresults subfolder in your current folder.

p = profile("info");
profsave(p,"myresults")

% Copyright 2020 The MathWorks, Inc.