adding the matlab script