www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@responsefeatures/Select.m
function RF = Select(RF,indices) %SELECT select a subset of response features from the response feature set % % RF = Select(RF,indices); % % See also mbcmodel.responsefeatures.Remove, mbcmodel.responsefeatures.Add % Copyright 2007 The MathWorks, Inc. if islogical(indices) indices= find(indices); end L = RF.Object; if any(~isnumeric(indices) | min(indices)<1 | indices>numfeats(L) | indices~=fix(indices)) error(message('mbc:mbcmodel:responsefeatures:InvalidArguments', numfeats( L ))) end L = SelFeat(L,indices); RF.Object = L;