Help with parsing a csv

1 view (last 30 days)
Tony
Tony on 28 Mar 2013
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
Tony
Tony on 28 Mar 2013
This is the output:
2008.06.06.08:00:08,3.44100000,3.44100000,3.44100000,3.44100000,48
per isakson
per isakson on 28 Mar 2013
Hint:
>> double('0')
ans =
48
>>

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!