Octave: import large matrix in csv format

I am trying to import a matrix (about 80,000 rows) from a csv file in Octave. The obvious solution is something like this:

load("-ascii","relative_directory/the_file.csv") 

or maybe rename the file and try:

 load("-ascii", "relative_directory/the_file.txt") 

However, I keep getting the error:

load: could not read the matrix from the file "Relative_directory / the_file.csv"

or .txt without details. Any advice is appreciated.

+4
source share
1 answer

Delete all characters:

 , : - / 

and leaving only numbers, solves the import problem if we use "load" with the "-ascii" option. I also tried using the "-text" parameter instead of -ascii ", but this also leads to an error,

load: empty name keyword or no data found in file

+2
source

Source: https://habr.com/ru/post/1305005/


All Articles