www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/InterpolateDataValuesToRowTimesExample.m

    %% Interpolate Data Values to Row Times
% Load two sample timetables that contain weather measurements. Synchronize
% their data to the union of the row times from the timetables.
load(fullfile(matlabroot,'examples','matlab','firstTT'));

%%
% Display the timetables.
TT1
TT2

%%
% Synchronize the timetables. To select the union of row times, 
% specify |'union'|. To resample |TT1.Temp| and |TT2.Humidity| using linear interpolation,
% specify |'linear'|.
TT = synchronize(TT1,TT2,'union','linear')