Loading large .txt file
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Manolis Mylonakis
el 12 de Feb. de 2021
Comentada: Manolis Mylonakis
el 12 de Feb. de 2021
Hello
I am trying to load a large(3gb) .txt file that contains a timeseries. I have tried many ways but nothing seems to work. I cannot understand why
Ws= load('era5_wind_speed_100m_2d.txt', '-ascii'); doesn't work. I get the message: "Unable to read file 'era5_wind_speed_100m_2d.txt'. Input must be a MAT-file or an ASCII file containing numeric data with same number of columns in each row." I know that the file contains numeric data and has the same number of columns in each row. Plus the same code works just fine with similar data. The only way I found opening the file was with: WS = readtable('era5_wind_speed_100m_2d.txt'); but it turns my data into a matrix and I cannot work with it. I cannot even multiply the table with a numer, when i try this, i get: "Operator is not supported for operands of type 'table'". Any ideas how can i Load my data with proper format or how can i turn the operand "table" into a normal matrix
Thanks in advance
0 comentarios
Respuesta aceptada
Cris LaPierre
el 12 de Feb. de 2021
You can also explore additional options for loading text files, including doing so interactively, here.
Más respuestas (0)
Ver también
Categorías
Más información sobre Text Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!