function [out] = binvec2dec(bin)

out = [0];

for i = 0 : size(bin') - 1
	if bin(i+1) == 1
		out(1,1) += 2^i;
	end
end
