convert binary vector value into decimal
15 ビュー (過去 30 日間)
古いコメントを表示
i have
a= [0 0 1 0 1 0 1 1]
i want to convert it, into decimal value 43
0 件のコメント
回答 (3 件)
Azzi Abdelmalek
2014 年 2 月 26 日
編集済み: Azzi Abdelmalek
2014 年 2 月 26 日
a= [0 0 1 0 1 0 1 1];
b=bin2dec(sprintf('%d',a))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!