Convert binary to decimat
Show older comments
I have matrix A as:
A=
[11
101
110]
11, 101 and 110 here are in decimal system. But I want MATLAB to consider 11 as bits and convert them into decimals. i.e. 11=3, 101=5 and 110=6. Is there any way of doing this on a matrix of any dimension which have elements like this?
Accepted Answer
More Answers (1)
James Tursa
on 25 Jul 2017
doc bin2dec
Categories
Find more on Resizing and Reshaping Matrices 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!