Matrix Calculation for Scale