%% Select Subset of Messages In rosbag
% Retrieve the rosbag. Specify the file path.

bag = rosbag('ex_multiple_topics.bag');

%
% Select all messages within the first second of the rosbag.

bag = select(bag,'Time',[bag.StartTime,bag.StartTime + 1]);

% Copyright 2012 The MathWorks, Inc.