Update course_matrices