function status = bwrite( fid, bits, value );
%
%
%
%
if( bits < 0 ),
 prec=sprintf('bit%d', -bits);
else
 prec=sprintf('ubit%d', bits);
end

status = fwrite( fid, value, prec );



