www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgnormaliser/UpdateSFlist.m

    function LT = UpdateSFlist(LT,p,flag)
%UPDATESFLIST Updates the list of feature pointers
%
%  UPDATESFLIST(OBJ, TABLEPTR, FLAG) adds (FLAG=1) or removes (FLAG=0)
%  feature pointers from the normaliser.

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


switch flag
    case 0
        if ~isempty(LT.SFlist)
            LT.SFlist = LT.SFlist((LT.SFlist~=p));
        end
    case 1
        LT.SFlist = unique([LT.SFlist;p]); 
end