script for data.mat