www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregrbf/designobj.m
function d=designobj(m,opt) % DESIGNOBJ Return an appropriate design object % % D=DESIGNOBJ(M) constructs a design object containing the % model M and returns it as D. % % D=DESIGNOBJ(M,'classname') returns the classname of the design % object for the model. This is used to avoid recursion in % xregdesign/model. % % Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin>1 && strcmp(opt,'classname') d='xregdesign'; else d=xregdesign('nfactors',nfactors(m)); d= model(d,m); d=name(d,'Radial Basis Function Design'); end return