15
Matlab Profiler Basic Stanley 2011/1/25 Weekly Talk

Weekly talk 20110126 matlab profiler

  • Upload
    -

  • View
    144

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Weekly talk 20110126 matlab profiler

Matlab ProfilerBasic

Stanley 2011/1/25Weekly Talk

Page 2: Weekly talk 20110126 matlab profiler

Outline

• Matlab Profiler– GUI Profile tool in matlab

• Speed Up– Example 1: Avoid Loop– Example 2: Avoid Growing Variable– Example 3: Avoid Function Overhead– Example 4: Adopt Sparse Matrix

Page 3: Weekly talk 20110126 matlab profiler

Matlab Profiler

Page 4: Weekly talk 20110126 matlab profiler

Matlab Profiler

Page 5: Weekly talk 20110126 matlab profiler

Example 1.1: Avoid Loop

M-Lint resultsNo M-Lint messages.

Page 6: Weekly talk 20110126 matlab profiler

Example 1.1: Avoid Loop

Page 7: Weekly talk 20110126 matlab profiler

Example 1.2: Avoid Loop

Page 8: Weekly talk 20110126 matlab profiler

Example 1.2: Avoid Loop

Page 9: Weekly talk 20110126 matlab profiler

Example 2: Avoid Growing Variable

Page 10: Weekly talk 20110126 matlab profiler

Example 2: Avoid Growing Variable

Page 11: Weekly talk 20110126 matlab profiler

Growing Variable(M-Lint resuls in Matlab R2008a)

Page 12: Weekly talk 20110126 matlab profiler

Example 3: Avoid Function Overhead

Page 13: Weekly talk 20110126 matlab profiler

Example 3: Avoid Function Overhead

Page 14: Weekly talk 20110126 matlab profiler

Example 4: Adopt Sparse Matrix

Page 15: Weekly talk 20110126 matlab profiler

Example 4: Adopt Sparse Matrix