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

1 view (last 30 days)
How do I split '1001' - char array, into 4 separate bits?

Answers (1)

Matt J
Matt J on 15 Oct 2020
Edited: Matt J on 15 Oct 2020
One way:
'1001' - '0'
ans = 1×4
1 0 0 1

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!