0
我有以下數據集:使用interp1時間序列
27/10/2014,11:45:00,231
27/10/2014,12:00:00,229
27/10/2014,12:15:00,NaN
27/10/2014,12:30:00,NaN
27/10/2014,12:45:00,227
27/10/2014,13:00:00,225
27/10/2014,13:15:00,NaN
27/10/2014,13:30:00,NaN
27/10/2014,13:45:00,222
27/10/2014,14:00:00,221
27/10/2014,14:15:00,NaN
27/10/2014,14:30:00,NaN
27/10/2014,14:45:00,219
27/10/2014,15:00:00,218
27/10/2014,15:15:00,NaN
27/10/2014,15:30:00,NaN
27/10/2014,15:45:00,214
我需要使用interp1命令插值丟失的數據:
date_string = strcat (dados.textdata(2:end,2),{' '}, dados.textdata(2:end,3));
xdate = datenum (date_string, 'dd/mm/yyyy HH:MM:SS');
xi = (1 :length(xdate))';
yi = interp1 (xdate,dados.data,xi);
然而,易建聯只返回NaN的。
如何繪製插值?
從輸入取出的NaN。 – AnonSubmitter85 2014-11-06 20:20:35