ipython and ipython notebook for Matlab users

Following my post on IDEs for scientific Python, several commenters mentioned using some combination of their favorite text editor and ipython rather than a dedicated IDE. ipython is an interactive Python interpreter that offers a much enhanced user experience over the regular Python interpreter: with features such as: Integration with matplotlib Autocompletion Syntax highlighting at … More ipython and ipython notebook for Matlab users

Send a text message or email when a Matlab script is finished

It’s a drag to periodically check Matlab to see if a long-running script has finished. Why not go read some papers at the library and wait for Matlab to call you: “Yo, it’s Matlab. Your script’s done. […] Yeah I’ll pick up some milk. Love you.”. Well I haven’t figured out a way for Matlab … More Send a text message or email when a Matlab script is finished

Using an L1 penalty with an arbitrary error function

The L1 penalty, which corresponds to a Laplacian prior, encourages model parameters to be sparse. There’s plenty of solvers for the L1 penalized least-squares problem, . It’s harder to find methods for other error functions than the sum-of-squares. L1General by Mark Schmidt solves just such a problem. There’s more than a dozen different algorithms implemented … More Using an L1 penalty with an arbitrary error function

Poor man’s parallel computing on multiple computers in Matlab

Let’s say that you need to run the same analysis with multiple datasets; for instance, you need to do reverse correlation with multiple cells. This might take a while, so you would like to run the analysis on multiple computers. The computers might be a bit different from each other, as well as the recording … More Poor man’s parallel computing on multiple computers in Matlab