Synchronize timetable, using different methods for each column
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
Is it possible to synchronise two timetables in matlab by using different methods for each column?
For example, below shows the way that I am currently synchronizing the time tables, which synchornizes all columns (i.e. the variables) according to the 'previous' method:
% Unsynchronized time tables
TT1 = timetable(Date1, Spend1, Balance1) ;
TT2 = timetable(Date2, Spend2, Balance2) ;
% Synchronizing the above time tables
TTSync = synchronize(TT1, TT2, 'daily', 'previous') ;
However, I would like to synchronize columns Spend1 and Spend2 according to the 'fillwithconstant' method.
This is indeed not a huge problem, since i could achieve the above by simply splitting the time tables, however since i am already splitting the time tables for other reasons, and I have to processing multiple time tables to begin with, being able to perform the task that I just explained above would save me a lot of lines in the code.
Thanks for your help in advance.
KR,
KMT.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!