Help with parsing a csv
1 view (last 30 days)
Show older comments
Hi,
I'm a fairly new user to MATLAB and programming. I need some help and guidance with the following problem.
I have a lot of csv files with only 1 line of data in each. The data in each csv looks like the following: 39605.000000,39605.333433,39605.333433,8.000000,0.000000,3.441000,4.239000,4.754000,5.179000
The first 5 columns looks like it is date/time related and the last 4 columns are the data values I need.
I am trying to create 4 new csv's from the 4 data values with the following format: 'yyyy.mm.dd.HH:MM:SS', data
Can anyone please help or provide me some guidance on how to get this accomplished? I've only been able to read the csv and get the data with fopen. I'm not sure how to change create the date format I need from the file.
9 Comments
Answers (0)
See Also
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!