A variety of matlab improvements.