Category: Matlab obscure functions
-
Loading huge matrices in Matlab with memmapfile
It sometimes happens that I need to work with huge matrices in Matlab – too large to fit into RAM (and I have 12GB of RAM on my work computer). A classic example is when doing reverse correlation with long sequences of images. There are a few ways to work with such a large dataset.…
-
Obscure Matlab feature #0: Debug on error
If you have a long running function that you just wrote and need to debug, type this in the Matlab command window: dbstop if error This will cause the debugger to kick in as soon as a Matlab error is thrown, so you can trace the variables in your function which are erased from memory…