Array resizing performance
Several alternatives are explored for dynamic array growth performance in Matlab loops.
Several alternatives are explored for dynamic array growth performance in Matlab loops.
Preallocation is a standard Matlab speedup technique. Still, it has several undocumented aspects.
mtic and mtoc were a couple of undocumented features that enabled users of past Matlab releases to easily profile memory usage.
Editing Matlab arrays in-place can be an important technique for optimizing calculations. This article shows how to do it using Mex.
Internal fields of Java objects may leak memory - this article explains how to avoid this without sacrificing performance.
Converting Java vectors to Matlab arrays is pretty simple - this article explains how.
Caching is a simple and very effective means to improve code performance, as demonstrated for the datestr function.
Matrix operations performance is affected by internal subscriptions in a counter-intuitive way.
There are several undocumented ways in Matlab to get CPU and clock data
The performance of the built-in Matlab function datenum can be significantly improved by using an undocumented internal help function