edit large CSV file before reading it to a table
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi,
I have a very large (16Gb) CSV file that contains one column with data separated by semicolumn.
I only need 2 columns from this data, but I cannot read it first since the memory is running out (I have 16Gb ram).
Is it possible to somehow separate the semicolumn to a column and read only the data I need (which is 2/6 columns)?
2 commentaires
Réponse acceptée
Walter Roberson
le 6 Mai 2021
Use 'delimiter', ';', and 'SelectedVariableNames' with a vector that is the two column numbers.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!