convert binary vector value into decimal
15 views (last 30 days)
Show older comments
i have
a= [0 0 1 0 1 0 1 1]
i want to convert it, into decimal value 43
0 Comments
Answers (3)
Azzi Abdelmalek
on 26 Feb 2014
Edited: Azzi Abdelmalek
on 26 Feb 2014
a= [0 0 1 0 1 0 1 1];
b=bin2dec(sprintf('%d',a))
0 Comments
See Also
Categories
Find more on Logical 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!