www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregexportmodel/nfactors.m
function [n,s,u]=nfactors(M) %NFACTORS number of input factors to model % n = NFACTORS(m) % [n,symbols,units] = NFACTORS(m); returns the number, symbols and % units of the input factors in the model. % Copyright 2000-2009 The MathWorks, Inc. and Ford Global Technologies, Inc. n = length(M.symbols); if nargout>1 s = M.symbols; if isempty(M.units) u = []; else u = M.units(2:end); u = reshape(u,length(u),1); end end