clear

fileName = 'WF-CANONCruiseSept2010_tensionModifiedTime.txt';
fid = fopen(fileName);
fprintf(1,'Reading from file %s\n', fileName);
data = textscan(fid,'%s %d %s %s %s %f %f %s %s %f %f %f %s', 'Delimiter', '\t', 'HeaderLines', 1);
fclose(fid);

date = data{4}(:);
time = data{5}(:);
fprintf(1,'Generating spaces\n');
spaces = blanks(length(date));

fprintf(1,'Converting to numbers\n');
dt = [char(date) spaces' char(time)];

dtCell = cellstr(dt);
fprintf(1,'This works on 1 element of the array\n');
testNum = datenum(dtCell(1))

fprintf(1,'But none of these do\n');
dtNum = datenum(dtCell)


