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

    function s = size(S,dim)
%SIZE Size of sweepset
%
%  S = SIZE(OBJ) returns the size of the sweepset.  The size of a sweepset
%  is defined as (nrec , nvar , nsweeps).

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


s = [numRecords(S), numDataVariables(S), size(S.xregdataset)];
if nargin==2
    s = s(dim);
end