data and matlab code