the matlab code for the final project for my 10.10 class