All the matlab code for Brian's lab.