My personal stash of matlab code. Please excuse the mess.