www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregdataset/tstart.m

    function ts=tstart(T, level)
%TSTART

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.



% Allows multi-level record access

if nargin < 2
	level = 1;
end

if ~isempty(T.sizes{level})
	ts = cumsum(double([1 T.sizes{level}(1:end-1)]));
else
	ts = [];
end