Polished massTransMatrix.m