% test the printbinary function
disp('the following two should match')
n = 153637;
printbinary(n)
dec2bin(n)
for n=0:10, printbinary(n); end
try, printbinary(-4), catch, 'n<0 error correctly detected', end
