Read one column from a csv file into MATLAB for calculating
Show older comments
I'd like to read one column from a csv file '2004.csv' which already in the MATLAB path. The column contains 'NaN' value and I want to treat it as empty. The column looks like following:
ArrDelay
NaN
-14
2
14
-6
NaN
11
57
...
-6
NaN
11
57
The variable name is 'ArrDelay' which is the title of the column. The column contains 7009729 records and I'd like to calculate the mean of those records.
How can I make it?
Accepted Answer
More Answers (0)
Categories
Find more on String Parsing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!