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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!