Create a Python function to print out a matrix of numbers.
def print_matrix(matrix):
    """
    Function to print out a matrix of numbers.
    """
    for row in matrix:
        for num in row:
            print(str(num).ljust(4), end="")
        print()