Weekly talk 20110126 matlab profiler
15
Matlab Profiler Basic Stanley 2011/1/25 Weekly Talk
Transcript of Weekly talk 20110126 matlab profiler
![Page 1: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/1.jpg)
Matlab ProfilerBasic
Stanley 2011/1/25Weekly Talk
![Page 2: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/2.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/3.jpg)
Matlab Profiler
![Page 4: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/4.jpg)
Matlab Profiler
![Page 5: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/5.jpg)
Example 1.1: Avoid Loop
M-Lint resultsNo M-Lint messages.
![Page 6: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/6.jpg)
Example 1.1: Avoid Loop
![Page 7: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/7.jpg)
Example 1.2: Avoid Loop
![Page 8: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/8.jpg)
Example 1.2: Avoid Loop
![Page 9: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/9.jpg)
Example 2: Avoid Growing Variable
![Page 10: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/10.jpg)
Example 2: Avoid Growing Variable
![Page 11: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/11.jpg)
Growing Variable(M-Lint resuls in Matlab R2008a)
![Page 12: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/12.jpg)
Example 3: Avoid Function Overhead
![Page 13: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/13.jpg)
Example 3: Avoid Function Overhead
![Page 14: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/14.jpg)
Example 4: Adopt Sparse Matrix
![Page 15: Weekly talk 20110126 matlab profiler](https://reader036.fdocuments.us/reader036/viewer/2022062319/555a27e4d8b42a900d8b49a8/html5/thumbnails/15.jpg)
Example 4: Adopt Sparse Matrix