help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Load multiple csv files together and at once


From: zs1992
Subject: Load multiple csv files together and at once
Date: Fri, 22 Nov 2019 04:09:45 -0600 (CST)

Hi everyone,
I'm trying to load multiple csv files(over 200) at once, so I could write
the whole data to Netcdf files.
Since the csv files are mixed with numbers, date strings and column names, I
can't use csvread or dlmread, otherwise I get weirdly-arranged data. I also
tried dataframe, but it takes 28 seconds to read a csv file, which is way
too time-consuming.  
Currently, what works for me is csv2cell, which converts a csv into a cell
array. However, the csv files I have have different numbers of columns(also
different column names). Therefore I can't concatenate them into one big
cell array.
Is there any good solutions to that?
Best regards,
Shuo  



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]