www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/MaximumIntegerExample.m

    %% Maximum Integer  
% Find the difference in the binary representation between the maximum
% integer of signed and unsigned integers.

%%  
a1 = intmax('int8');
a2 = intmax('uint8');
b1 = bitget(a1,8:-1:1)
b2 = bitget(a2,8:-1:1) 

%%
% The signed integers require a bit to accommodate negative integers.