Main Content
binaryVectorToDecimal
Convert binary vector value to decimal value
Description
This function is part of Data Acquisition Toolbox™, and converts binary data represented by a vector of 1s and 0s. To
convert binary data from a string or character vector, you can use the MATLAB® function bin2dec
.
converts a binary vector to a decimal.decVal
= binaryVectorToDecimal(binaryVector
)
binaryVectorToDecimal(
converts a binary vector with the specified bit orientation to a decimal.binaryVector
,bitOrder
)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2012b