www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/InnerJoinOperationOfTimetablesExample.m
%% Inner-Join Operation of Timetables % Create two timetables, |A| and |B|. They have some row times in common, % but each also includes row times that are not in the other timetable. A = timetable(seconds([1;2;4;6]),[1 2 3 11]') %% B = timetable(seconds([2;4;6;7]),[4 5 6 7]') %% % Combine |A| and |B| with an inner join. |C| matches up the rows with % common row times. |C| does not contain any other rows from either % timetable. C = innerjoin(A,B)