function dat=subts(ts,sy,sp,ey,ep)
%SUBTS returns a subset of the tsmat over the period specified 
%  
%    dat=subts(ts,sy,sp,ey,ep)
%
%    Example:
%        dat=subts(ts,1980,1,1985,12) returns the ts(1980,1,1985,12,:) 
%
% see also 
%
%   BITS -  Banca d'Italia Time Series 
%   Copyright 2005-2007 Banca d'Italia - Area Ricerca Economica e Relazioni Internazionali
%
%   Author: Emmanuele Somma (emmanuele.somma@bancaditalia.it)
%           Area Ricerca Economica e Relazioni Internazionali 
%           Banca d'Italia
%

dat=ts(sy,sp,ey,ep,:);
