## Saving from inside a parfor loop in Matlab

If you call save from a parfor loop in Matlab, like this for example: parfor k=1:100 foo = exp(-k); save([’myfile’,num2str(k),’.mat’],’foo’); endparfor k=1:100 …

## The Trace Trick for Gaussian Log Likelihood

Maybe you have seen something like this when observing the log likelihood derivations for multivariate Gaussians  \ln p(X|\mu, \Sigma) = \frac{1}{2}\ln|\Sigma|- …

## Calculating the indices for n choose k

So if you want to calculate n choose k, or n over k or all k different combinations of n unique items …

## Debugging in Matlab

Getting in to someones code or just cleaning up your own Matlab code it’s good to know how to do break points …