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 like this => 1 0 0 1?

Answers (1)

madhan ravi
madhan ravi on 15 Oct 2020
'1001' - '0'

Categories

Find more on Simulink in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!