Code covered by the BSD License  

Highlights from
Contemporary Communications Systems Matlab Files

image thumbnail

Contemporary Communications Systems Matlab Files

by

 

Matlab Files in this book

y=deci2bin(x,l)
function y=deci2bin(x,l)
y = zeros(1,l);	
i = 1;
while x>=0 & i<=l
	y(i)=rem(x,2);
	x=(x-y(i))/2;
	i=i+1;
end
y=y(l:-1:1);

Contact us