Info

This question is closed. Reopen it to edit or answer.

How do I assign Nan to data entry after reading data file using textscan?

1 view (last 30 days)
I have a data in the following format
DATE TIME DOY TAMX TAMY TAMZ TAMG
2010-01-01 00:00:00.000 001 33564.50 -272.20 17140.00 -.30
2010-01-01 00:15:00.000 001 33564.50 -272.20 17140.00 -.30
2010-01-01 00:30:00.000 001 33564.50 -272.20 17140.00 -.30
2010-01-01 00:45:00.000 001 33564.50 -272.20 17140.00 -.30
2010-01-01 01:00:00.000 001 33564.50 -272.20 17140.00 -.30
2010-01-01 01:15:00.000 001 33564.50 -272.20 17140.00 -.30
2010-01-01 01:30:00.000 001 33564.50 -272.20 17140.00 -.30
2010-01-01 01:45:00.000 001 33564.50 -272.20 17140.00 -.30
'
'
'
2010-01-01 23:45:00.000 001 33564.50 -272.20 17140.00 -.30
How can I read the data and assign NaN to periods with no data (e.g., if no data on 2010-01-01 02:00:00.000. The data interval is 15 minute

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!