num2bin
Convert number to binary representation.
📝Syntax
R = num2bin(M)
📥Input Arguments
Parameter Description
M a variable: logical, integer, single or double real full matrix.
📤Output Arguments
Parameter Description
R result of num2bin: char array.
📄Description

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

💡Examples
X = [65535 128; 1 0]
Y = num2bin(X)
🔗See Also
bin2num
Used Functions
C++ std::bitset
📚Bibliography
http://www.oxfordmathcenter.com/drupal7/node/43
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub