function output = bitget0(number, nbit)
% output = bitget0(number, nbit)   Get bit.
% 	Gets "nbit"th bit from "number".
%	Like bitget(), but uses nbit=0,1,... instead of 1,2,...

% 2008/03/07  Changed name from bitget2() to bitget0()
% 1998/05/19  Fixed comments
% 1998/03/10  Now use matlab5's bitget()

output = bitget(number, nbit+1);

%        y = floor(num/2^nbit);
%        bit = (y ~= fix(y/2)*2);
