Combinations of matrices