Random matlab stuff (mostly from lab work @ univ)