From: Jason Theis on 8 Jul 2010 18:40 I was wondering if anyone could help with formatting a huge amount of data that I have? The data that I will be formating is the date and time that a bunch of sensors were activated. The format of the raw data is yyyy-mm-dd hour:min:sec and I need to change it to dd-mm-yyyy hour:min:sec. I have been trying to change the format using datenum, datestr, and datevec and have been successful in changing one date at a time but this is not time efficient and I can't figure out how to change the format for the entire data file. Thanks for your time I really appreciate any input. -Jason
From: Walter Roberson on 8 Jul 2010 18:44 Jason Theis wrote: > I was wondering if anyone could help with formatting a huge amount of > data that I have? The data that I will be formating is the date and time > that a bunch of sensors were activated. The format of the raw data is > yyyy-mm-dd hour:min:sec and I need to change it to dd-mm-yyyy hour:min:sec. > I have been trying to change the format using datenum, datestr, and > datevec and have been successful in changing one date at a time but this > is not time efficient and I can't figure out how to change the format > for the entire data file. Thanks for your time I really appreciate any > input. Any reason not to toss the data into a char array, one date per line, and then to do simple array indexing: NewDates = Dates(:,[7:10 3:6 1:2 11:end]);
|
Pages: 1 Prev: two's complement Next: shell escape with student version |