A couple of simple matlab scripts