function setlength(h,L)
%SETLENGTH Access method for the private length property
%
%   Author(s): James G. Owen
%   Copyright 1986-2003 The MathWorks, Inc.
%   $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:34:51 $

% Access method to set time series length
h.Length = L;
if isfinite(h.Increment)
	set(h,'End',h.start+h.increment*(h.getlength-1));
end
