ERROR - A MAT statement references an array of more than two dimensions. Remove the array reference. MAT statements are valid only on arrays of one or two dimensions.