Good Afternoon,
I am having difficulty loading csv files into Matlab. The problem seems to be with the header (which contains strings) and the data values in two of the columns (they contain time values in 00:00 format).
I am able to ignore the header through use of the 'csvread' function, but Matlab won't load the time values and gives me the below errors.
EDU>> x = csvread('SUNY_070054005.csv', 1, 0)
??? Error using ==> dlmread at 145 Mismatch between file and format string. Trouble reading number from file (row 1, field 5) ==> :15,0
Error in ==> csvread at 50 m=dlmread(filename, ',', r, c);
The data in the CSV file are in the following format…
Date,Itime,Uglo,Udir,Udif,Stime,Sglo,Sdir,Sdif
1998-01-01,00:15,0,0,0,01:00,0,0,0
1998-01-01,01:15,0,0,0,02:00,0,0,0
I would use the wizard, but I have to import 281 csv files.
Any help would be appreciated.
Many Thanks,
Steven
Best Answer