edit matlab code for generate testing data