I have a text file containing data of the form:
201901010000201901010100201901010200201901010300201901010400201901010500201901010600201901010700201901010800201901010900201901011000
…
The data reflect date and time information. I'm trying to figure out a way to read these data in and then parse to a matrix that reflects year, month, day, hour etc. The latter is simple, I'm just stuck on how to read the data in. I have explored both textscan and fscanf but nothing obvious springs to mind. For example, read first 4 numbers = year, 5-6=month etc. Thank you
Best Answer