Fixed indexing error in massTransMatrix.m