testing matlab codes