www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/mbcTestSelector.m

    function sel = mbcTestSelector(sel,Percent)
%mbcTestSelector select test
%   sel = mbcTestSelector(sel,Percent)

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

if ~isempty(sel)
    % use first element of each test to select the whole test
    sel = sel(1)<=Percent/100;
else
    sel = false(size(sel));
end