Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



bit to integer
Posted:
Dec 10, 1997 9:04 PM


Does MATLAB has a function/block like "bit to integer"?
For example, consider the following sequence of input values: 0 1 0 1 1 0 0 0 1 0 1 1 1 1 1
With the number of input bits set to 3 and the order set to 'MSB" (most significant bit first), the output sequence is:
0 0 2 2 2 6 6 6 1 1 1 3 3 3 7
Thank you for assistance. Asadul Huq
PS: Emails are preferable.
 ##################### Opinion is mine ##################### Asadul Huq, Broadband Mobile Communications Section CRL, Ministry of Post and Telecom., Japan Phone (W): (423)275467; (H): (423)286047; FAX:(423)276953 Web: http://www.geocities.com/ResearchTriangle/Lab/2165 ################ email:asadul@crl.go.jp ####################



