# Matrix Example # Read data from a file into a matrix. cat('Matrix M\n\n') M <- matrix(scan('matrix.txt'), 20, 20, byrow=T) print(M)