%% Specify Sample Rate
% Create a timetable using column vectors of data. The row times are between 10 and 50 milliseconds.

Intensity = [100 98.7 95.2 101.4 99.1]';
Time = milliseconds([11 20 34 40.3 49.9])';
TT1 = timetable(Time,Intensity)

%
% Resample the data in TT1 using a sample rate of 100 Hz.

TT2 = retime(TT1,'regular','linear','SampleRate',100)

% Copyright 2012 The MathWorks, Inc.