Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by