convert_numeric_matrix function

Method that converts a matrix into numerical format.