hexToBinaryVector
R2026bConvert 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, use the MATLAB® functions hex2dec and dec2bin. See Hexadecimal and Binary Values.
converts a hexadecimal number to a binary vector with the specified number of
bits.binVal = hexToBinaryVector(hexNumber,numberOfBits)
converts a hexadecimal number 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