Undocumented profiler options
The Matlab profiler is a powerful tool for debugging performance-related issues in Matlab applications. However, it also has some undocumented options that facilitate other forms of debugging, namely...
View ArticleJIDE Property Grids
I would like to welcome guest blogger Levente Hunyadi.Matlab’s property inspectorWe often wish to edit properties of heterogeneous objects using a common interface. Matlab’s property inspector, invoked...
View ArticleMatlab-Java memory leaks, performance
There are several ways of retrieving information from a Java object into Matlab. On the face of it, all these methods look similar. But it turns out that there are important differences between them in...
View ArticleMatlab mex in-place editing
I would like to welcome Matlab Mex power-user Peter Li to a first in a short series of articles about undocumented aspects of Mex programingEditing Matlab arrays in-place can be an important technique...
View ArticleProfiling Matlab memory usage
Anyone who has had experience with real-life applications knows that Memory usage can have a significant impact on the application’s usability, in aspects such as performance, interactivity, and even...
View ArticleMatlab’s internal memory representation
Once again I’d like to welcome guest blogger Peter Li. Peter wrote about Matlab Mex in-place editing last month. Today, Peter pokes around in Matlab’s internal memory representation to the greater good...
View ArticlePreallocation performance
Array preallocation is a standard and quite well-known technique for improving Matlab loop run-time performance. Today’s article will show that there is more than meets the eye for even such a simple...
View ArticleArray resizing performance
As I have explained last week, the best way to avoid the performance penalties associated with dynamic array resizing (typically, growth) in Matlab is to pre-allocate the array to its expected final...
View ArticleInternal Matlab memory optimizations
Yesterday I attended a seminar on developing trading strategies using Matlab. This is of interest to me because of my IB-Matlab product, and since many of my clients are traders in the financial...
View ArticleThe Java import directive
A recent blog post on a site I came across showed me that some users who are using Java in Matlab take the unnecessary precaution of always using the fully-qualified class-name (FQCN) of the Java...
View ArticleAllocation performance take 2
Last week, Mike Croucher posted a very interesting article on the fact that cumprod can be used to generate a vector of powers much more quickly than the built-in .^ operator. Trying to improve on...
View ArticleAssessing Java object size in Matlab
Have you noticed that all Java object references are displayed as using 0 bytes in the Matlab Workspace browser and the whos function? This is not a bug, but in fact a deliberate design decision, in...
View ArticleQuirks with parfor vs. for
A few months ago, I discussed several tips regarding Matlab’s parfor command, which is used by the Parallel Computing Toolbox (PCT) for parallelizing loops. Today I wish to extend that post with some...
View Article