23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2dec2bin<br />

Purpose Decimal to binary number conversion<br />

Syntax str = dec2bin(d)<br />

str = dec2bin(d,n)<br />

dec2bin<br />

Description str = dec2bin(d) returns the binary representation of d as a string. d must<br />

be a nonnegative integer smaller than 2 .<br />

52<br />

Examples<br />

str = dec2bin(d,n) produces a binary representation with at least n bits.<br />

ans =<br />

10111<br />

See Also bin2dec, dec2hex<br />

2-409

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!