mlpdec: Split read_matrix_params() into its own function.