%% Merge Two Financial Index Series and Keep Intersecting Dates
% Merge two index series into the final merged object (t12) and keep the intersecting dates.

dates = {'jan-01-2001'; 'jan-02-2001'; 'jan-03-2001'; 'jan-04-2001'; 'jan-06-2001'};
data = [1; 1; 1; 1; 1]; 
t1 = fints(dates, data,'A') 

dates = {'jan-02-2001'; 'jan-03-2001'; 'jan-04-2001'; 'jan-05-2001'}; 
data = [2; 2; 2; 2]; 
t2 = fints(dates, data,'B') 

t12 = merge(t1, t2,'DateSetMethod','Intersection')

% Copyright 2015 The MathWorks, Inc.