Category Archives: Memory

File deletion memory leaks, performance

Matlab’s delete function leaks memory and is also slower than the equivalent Java function.

Categories: Java, Low risk of breaking in future versions, Memory, Stock Matlab function
Tags: ,
2 Comments

The Java import directive

The import function can be used to clarify Java code used in Matlab.

Categories: Java, Low risk of breaking in future versions, Memory
Tags: ,
Leave a comment

Internal Matlab memory optimizations

Copy-on-write and in-place data manipulations are very useful Matlab performance improvement techniques.

Categories: Low risk of breaking in future versions, Memory, Stock Matlab function
Tags: , , ,
3 Comments

Array resizing performance

Several alternatives are explored for dynamic array growth performance in Matlab loops.

Categories: Low risk of breaking in future versions, Memory, Stock Matlab function, Undocumented feature
Tags: , , , ,
5 Comments

Preallocation performance

Preallocation is a standard Matlab speedup technique. Still, it has several undocumented aspects.

Categories: Low risk of breaking in future versions, Memory, Stock Matlab function, Undocumented feature
Tags: , , , ,
17 Comments

Matlab’s internal memory representation

Matlab’s internal memory structure is explored and discussed.

Categories: Guest bloggers, High risk of breaking in future versions, Memory, Mex, Undocumented feature
Tags: , , , ,
5 Comments

Profiling Matlab memory usage

mtic and mtoc were a couple of undocumented features that enabled users of past Matlab releases to easily profile memory usage.

Categories: High risk of breaking in future versions, Memory, Stock Matlab function, Undocumented function
Tags: , , , ,
7 Comments

Matlab mex in-place editing

Editing Matlab arrays in-place can be an important technique for optimizing calculations. This article shows how to do it using Mex.

Categories: Guest bloggers, High risk of breaking in future versions, Memory, Mex, Stock Matlab function, Undocumented feature
Tags: , , , ,
11 Comments

Matlab-Java memory leaks, performance

Internal fields of Java objects may leak memory – this article explains how to avoid this without sacrificing performance.

Categories: Java, Low risk of breaking in future versions, Memory, Semi-documented feature, Stock Matlab function
Tags: , , ,
30 Comments

Performance: scatter vs. line

In many circumstances, the line function can generate visually-identical plots as the scatter function, much faster

Categories: Handle graphics, Low risk of breaking in future versions, Memory, Stock Matlab function
Tags: , ,
4 Comments