Im trying to convert the first two columns of a cell into a Matlab time. first column {1,1} is the date in YYYY-MM-DD format and the second it the time in HH:MM format. Any ideas where I'm going wrong?
file = 'D:\Beach Erosion and Recovery\Bournemouth\Bournemouth Tidal Data\tidal_data_jtide.txt'fileID = fopen(file);LT_celldata = textscan(fileID,'%D%D%D%D%d%[^\n\r]','delimiter',',');formattime = 'yyyy-mm-dd HH:MM'date = LT_celldata{1,1};time = LT_celldata{1,2};date_time = datenum('date','time');
Best Answer