matscan function

Read matrix data from a file