num2bin

Convert number to binary representation.

Syntax

  • R = num2bin(M)

Input argument

  • M - a variable: logical, integer, single or double real full matrix.

Output argument

  • R - result of num2bin: char array.

Description

num2bin returns a char array giving the literal bit representation of a number.

Used function(s)

C++ std::bitset

Bibliography

http://www.oxfordmathcenter.com/drupal7/node/43

Example

X = [65535 128; 1 0]
Y = num2bin(X)

See also

bin2num.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated