Scilab Function
Last update : 30/10/2005

dec2bin - conversion of decimal numbers into binary representation

Calling Sequence

y = dec2bin(x)

Parameters

Description

The elements of the input row vector are made positive and rounded. Only natural positive numbers are used for that function.

Examples

x=ceil(256 .*rand(1,10));
y=dec2bin(x);
disp(x);
disp(y);

Authors

Dr. Andreas Geissler geisslea@web.de