Are there any examples that demonstrate how to read a comma-delimited ASCII file that contains missing data?
Show older comments
I have a file called 'myfile.dat' which contains the following data:
date,time,current,voltage,power
12/01/60,3:56,1,2,3
12/01/61,3:57,2,4,6
12/01/67,3:58,3,,9
12/01/63,3:59,4,8
12/01/64,4:00,5,10,12
I am interested in reading the current, voltage, and power values from the file. As you can see, some data is missing so I would like to fill these spots with a zero. I would like to know what would be the best command to read such data in MATLAB.
Accepted Answer
More Answers (0)
Categories
Find more on Large Files and Big Data 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!