davyzhu
Advanced Member level 1
Hello all,
I have a file contain several lines of vectors(all the digit is in ASCII mode).
The file's content is like below, each line is a vector(something like
you use SAVE -ascii to save a matrix):
1 2 3 4 5 6 7 8 9 10
6 7 8 9 10 1 2 3 4 5
4 5 6 7 8 1 2 3 9 10
... ...
But my real vector each line is 1*2000, and I have 4000 lines vectors(i.e. a 4000*2000 matrix).
So the vector is too large to load all the vectors(i.e. the file matrix) by LOAD -ascii command.
How to load each line of vector separately?
i.e. load line1 vector -> load line2 vector -> ...till the last line vector
In all, I want a loop that reads one line from the file per loop iteration.
Thanks!
Richard
I have a file contain several lines of vectors(all the digit is in ASCII mode).
The file's content is like below, each line is a vector(something like
you use SAVE -ascii to save a matrix):
1 2 3 4 5 6 7 8 9 10
6 7 8 9 10 1 2 3 4 5
4 5 6 7 8 1 2 3 9 10
... ...
But my real vector each line is 1*2000, and I have 4000 lines vectors(i.e. a 4000*2000 matrix).
So the vector is too large to load all the vectors(i.e. the file matrix) by LOAD -ascii command.
How to load each line of vector separately?
i.e. load line1 vector -> load line2 vector -> ...till the last line vector
In all, I want a loop that reads one line from the file per loop iteration.
Thanks!
Richard