I have a text file that includes a matrix. I want to read it in julia as a matrix.
The text file looks like this:
0 0 0 0 0 0 0
1 0 0 0 0 0 0
1 0 0 0 0 0 1
1 0 0 0 1 1 0
In Matlab, you can do the following to create a matrix M
:
file='name.txt';
[M] = load(file);
How to do the same in Julia?
source
share