www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@sweepsetfilter/private/xregbitset.m

    function bits = xregbitset(toSet)
% SWEEPSETFILTER/XREGBITSET
%
%  Not Required yet

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

A = bitset(0, toSet);
bits = 0;
for i = 1:length(A)
    bits = bitor(bits, A(i));
end