www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregmodel/size.m
function n = size(m, dim); %SIZE Return size of a model % % SIZE(M) returns the size of a model. The size is defined as being % [numparams, 1]. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. p = double(m); if nargin>1 if dim==1 n = length(p); else n = 1; end else n = [length(p) 1]; end