MATLAB profiler

From Fluids Wiki
Revision as of 12:28, 7 July 2011 by Fluidslab (talk | contribs) (Created page with '== How to use MATLAB profiler == Run the following command, replace "mfilenamehere" with the mfile you wish to profile. <syntaxhighlight lang="matlab"> profile clear on; mfilenam…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to use MATLAB profiler

Run the following command, replace "mfilenamehere" with the mfile you wish to profile.

profile clear on; mfilenamehere; profile off viewer

How to include MATLAB profiler output in LaTeX

First run the profiler, and print the result to a .ps (postscript) file

Second, run these linux commands:

# convert out.ps to out.pdf
ps2pdf out.ps

# extract page 1
pdftk A=out.pdf cat 1 output page.pdf

# crop the borders
pdfcrop page.pdf final.pdf