www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@localmod/InputFactorTypes.m
function types = InputFactorTypes(m) %% model method to find out the nature of model inputs. %% types = [1 2 2 1 1 1 1] %% implies 3 local factors, 4 global %% eg. dynamic models require 2 input vectors for eval to work % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. nf = nfactors(m); types = ones(1,nf); if nf>=2 types(2:end)=2; end