Create findTheta.m