bin2num
Convert two's complement binary string to number.
📝Syntax
R = bin2num(M)
📥Input Arguments
Parameter Description
M a char array with.
📤Output Arguments
Parameter Description
R result of num2bin: logical, single or double.
📄Description

bin2num converts binary character arry to a numeric array.

Note:

- num2bin always returns the binary representations in a column

- bin2num and num2bin are inverses of one another.

💡Examples
X = [65535 128; 1 0]
Y = num2bin(X)
bin2num(Y)
🔗See Also
num2bin
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