added the matlab file i follow as a example