Function that reads contents and assigns then to a matrix.
For a matrix M, M.fscanf("filename", %.5e) reads from "filename" and stores it in matrix M