Added matlab finiteDifferenceTheta version