GSDF matlab