How to create time lagged variables
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is it a good way to create time lagged variables ? I mean y(t) then I y(t-3) in my case is PL1 column? Helps it is urgent
ra.PL1=nan(height(ra),1);
ra.PL1(6:end)= ra.pl1(1:end-5);
ps1=find(isnan(ra.PL1));
ra.PL1(ps1)=0;
pl1=ra(:,16);
vs1=table2array(pl1);
DT TMP SUM PL PL1
'1. 1. 2018 16:40:00' 5.54768371582031 122.152208709717 18.7284193038940 0
'1. 1. 2018 16:50:00' 5.40966801643371 124.909153556824 19.5109354019165 0
'1. 1. 2018 17:00:00' 5.26354980468750 132.169738960266 22.7616998672485 0
'1. 1. 2018 17:10:00' 4.91784658432006 135.638086318970 23.6789251327514 18.7284193038940
'1. 1. 2018 17:20:00' 4.82624821662902 137.288392639160 24.0866373062133 19.5109354019165
'1. 1. 2018 17:30:00' 4.77442932128906 138.069395446777 24.0339351654052 22.7616998672485
'1. 1. 2018 17:40:00' 4.75433349609375 138.673942184448 24.2562768936157 23.6789251327514
'1. 1. 2018 17:50:00' 4.72402954101562 138.336479377746 23.9741329193115 24.0866373062133
'1. 1. 2018 18:00:00' 4.75817871093750 138.404871940613 24.0072643280029 24.0339351654052
'1. 1. 2018 18:10:00' 4.85160822868347 138.158647727966 23.9400665283203 24.2562768936157
'1. 1. 2018 18:20:00' 4.86968984603881 138.695863533020 24.0358831405639 23.9741329193115
'1. 1. 2018 18:30:00' 4.89541621208190 138.542817687988 24.4938842773437 24.0072643280029
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Variables en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!