Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Saeed Bello
Saeed Bello le 10 Avr 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
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

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by