Convert a matrices to mats.