www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/MergeTimetablesExample.m
%% Merge Timetables % Create two timetables that have the same row times and traffic data. Traffic = [0.8 0.9 0.1 0.7 0.9]'; Noise = [0 1 1.5 2 2.3]'; A = timetable(hours(1:5)',Traffic,Noise) %% Distance = [0.88 0.86 0.91 0.9 0.86]'; B = timetable(hours(1:5)',Distance) %% % Merge the timetables. |join| uses the row times as the key variables. C = join(A,B)