Binary values
显示 更早的评论
How do I assign the value in Binary format to a uint8/uint16 variable ?
3 个评论
James Tursa
2012-5-3
Please be more specific. Give us a detailed example of sample input and desired output.
Sujan
2012-5-4
Walter Roberson
2012-5-4
uint8(bin2dec(a))
回答(1 个)
Walter Roberson
2012-5-3
uint8(bin2dec(TheString))
or use bitset()
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!