Momentum Term/Matlab Code