use readtable instead of readmatrix
D = readtable('dd.txt') % use readtable
Warning: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table. The original column headers are saved in the VariableDescriptions property.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
Set 'VariableNamingRule' to 'preserve' to use the original column headers as table variable names.
D = 4259×19 table
Date_Asia_Jakarta_ Tempin__C_ Temp__C_ Chill__C_ Dewin__C_ Dew__C_ Heatin__C_ Heat__C_ Humin___ Hum___ Wspdhi_m_s_ Wspdavg_m_s_ Wdiravg___ Bar_hPa_ Rain_mm_ Et_mm_ Rainrate_mm_h_ Solarrad_W_m__ Uvi__
__________________ __________ ________ _________ _________ _______ __________ ________ ________ ______ ___________ ____________ __________ ____________ ________ ______ ______________ ______________ _____
01/01/2022 00:00 27.3 25.3 25.3 NaN 23.3 NaN 25.3 52 89 1.5 1.1 229 {'1,010.90'} 0 NaN 0 0 0
01/01/2022 00:10 27.3 25.1 25.1 NaN 23.3 NaN 25.1 52 90 0 0 226 {'1,010.80'} 0 NaN 0 0 0
01/01/2022 00:20 27.3 25 25 NaN 23.2 NaN 25 52 90 0 0 226 {'1,010.40'} 0 NaN 0 0 0
01/01/2022 00:30 27.3 24.9 24.9 NaN 23.4 NaN 24.9 52 91 0 0 226 {'1,010.20'} 0 NaN 0 0 0
01/01/2022 00:40 27.3 24.9 24.9 NaN 23.4 NaN 24.9 52 91 0 0 226 {'1,010.30'} 0 NaN 0 0 0
01/01/2022 00:50 27.2 24.8 24.8 NaN 23.3 NaN 24.8 52 91 0.5 0.4 226 {'1,010.20'} 0 NaN 0 0 0
01/01/2022 01:00 27.1 24.8 24.8 NaN 23.3 NaN 24.8 52 91 0 0 226 {'1,010.10'} 0 NaN 0 0 0
01/01/2022 01:10 27.2 24.8 24.8 NaN 23.5 NaN 24.8 52 92 0 0 226 {'1,010.20'} 0 NaN 0 0 0
01/01/2022 01:20 27.2 24.8 24.8 NaN 23.3 NaN 24.8 52 91 0 0 226 {'1,010.10'} 0 NaN 0 0 0
01/01/2022 01:40 27.1 24.8 24.8 NaN 23.5 NaN 24.8 52 92 0 0 226 {'1,010' } 0 NaN 0 0 0
01/01/2022 01:50 27.1 24.8 24.8 NaN 23.3 NaN 24.8 52 91 0.5 0.1 226 {'1,009.80'} 0 NaN 0 0 0
01/01/2022 02:00 27.1 24.8 24.8 NaN 23.3 NaN 24.8 52 91 0 0 226 {'1,009.80'} 0 NaN 0 0 0
01/01/2022 02:10 27.1 24.8 24.8 NaN 23.3 NaN 24.8 52 91 0.5 0.5 226 {'1,009.80'} 0 NaN 0 0 0
01/01/2022 02:20 27.1 24.7 24.7 NaN 23.2 NaN 24.7 52 91 0.5 0.5 225 {'1,009.80'} 0 NaN 0 0 0
01/01/2022 02:30 27 24.7 24.7 NaN 23.2 NaN 24.7 52 91 0.5 0.2 226 {'1,009.80'} 0 NaN 0 0 0
01/01/2022 02:40 27 24.6 24.6 NaN 23.1 NaN 24.6 52 91 0 0 226 {'1,009.90'} 0 NaN 0 0 0
dt = D.Date_Asia_Jakarta_
dt = 4259×1 datetime array
01/01/2022 00:00
01/01/2022 00:10
01/01/2022 00:20
01/01/2022 00:30
01/01/2022 00:40
01/01/2022 00:50
01/01/2022 01:00
01/01/2022 01:10
01/01/2022 01:20
01/01/2022 01:40
01/01/2022 01:50
01/01/2022 02:00
01/01/2022 02:10
01/01/2022 02:20
01/01/2022 02:30
01/01/2022 02:40
01/01/2022 02:50
01/01/2022 03:00
01/01/2022 03:10
01/01/2022 03:20
01/01/2022 03:30
01/01/2022 03:40
01/01/2022 03:50
01/01/2022 04:00
01/01/2022 04:10
01/01/2022 04:20
01/01/2022 04:30
01/01/2022 04:40
01/01/2022 04:50
01/01/2022 05:00
jd = juliandate(dt)
jd = 4259×1
1.0e+06 *
2.4596
2.4596
2.4596
2.4596
2.4596
2.4596
2.4596
2.4596
2.4596
2.4596