How to convert 192 bit string to integer in matlab?
2 views (last 30 days)
Show older comments
jalashree trivedi
on 26 May 2018
Answered: Ameer Hamza
on 26 May 2018
I have a 192 bit binary string stored in a variable as bvar=01001101010000010101000001010000010010010100111001000111001000000100000101001110010001000010000001010010010001010101011001000101010100100101001101000101001000000100110101000001010100000000
i want it to convert into an integer as : 1894290318373708250692331360974342813437992324945519136768
how is it possible in matlab? pls help. thank you.
0 Comments
Accepted Answer
Ameer Hamza
on 26 May 2018
bvar='01001101010000010101000001010000010010010100111001000111001000000100000101001110010001000010000001010010010001010101011001000101010100100101001101000101001000000100110101000001010100000000'
decValue = bin2vpi(binaryNumber)
decValue =
118393144898356765668270710060896425839874520309094946048
0 Comments
More Answers (0)
See Also
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!