hexToBinaryVector
Convert hexadecimal value to binary vector
Syntax
Description
This function is part of Data Acquisition Toolbox™, and converts hexadecimal data to binary data represented by a vector
of 1s and 0s. To convert to binary data as a character vector, you can use the
MATLAB® functions hex2dec
and dec2bin
. See Hexadecimal and Binary Values.
converts hexadecimal numbers to a binary vector with the specified number of
bits.binVal
= hexToBinaryVector(hexNumber
,numberOfBits
)
converts hexadecimal numbers to a binary vector with the specified number of
bits in the specified bit ordering.binVal
= hexToBinaryVector(hexNumber
,numberOfBits
,bitOrder
)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2012b