Hello everyone. I converted 4 into binary and got 100 . my problem is that i want to use this 100 as a decimal but the matlab is obviously treating it as a binary number. Please help
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Mischa Kim
2014-2-28
编辑:Mischa Kim
2014-2-28
You could
my_bindec = str2num(dec2bin(4))/5
ans =
20
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!