www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@localmod/SetFeat.m

    function L=SetFeat(L,Type,Values);
% LOCALMOD/SETFEAT set response feature info
%
%  L=SetFeat(L,Type,Values);
%  L=SetFeat(L,'default');

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





if isa(Type,'char') & strcmp(lower(Type),'default')
	[Feats,Defaults,DefValues]= features(L);
	if nargin==2
		Values= DefValues;
	end
	Type= Feats(Defaults);
end

L.Values= Values;
L.Type= DatumDisplay(L,Type);
L= EvalDelG(L);
L.Limits= zeros(2,size(Values,1));
L.Limits(1,:)=-Inf;
L.Limits(2,:)= Inf;