Binary values

How do I assign the value in Binary format to a uint8/uint16 variable ?

3 个评论

Please be more specific. Give us a detailed example of sample input and desired output.
Sujan
Sujan 2012-5-4
for examples, I have to set a = '10101111'.
uint8(bin2dec(a))

请先登录,再进行评论。

回答(1 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

标签

提问:

2012-5-3

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by