I want to split a char array '1001' into 1 0 0 1 bits

1 次查看(过去 30 天)
How do I split '1001' - char array, into 4 separate bits?

回答(1 个)

Matt J
Matt J 2020-10-15
编辑:Matt J 2020-10-15
One way:
'1001' - '0'
ans = 1×4
1 0 0 1

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by