Synchronize timetable, using different methods for each column
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!