Read matrices from input file
updated matrices.mat