Phase Difference Equation In Matlab