www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SetBitstoOffExample.m
%% Set Bits to Off % Repeatedly subtract powers of 2 from a number. %% a = intmax('uint8') %% for k = 0:7 a = bitset(a, 8-k, 0); b(1,k+1) = a; end b