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

1 visualizzazione (ultimi 30 giorni)
How do I split '1001' - char array, into 4 separate bits?

Risposte (1)

Matt J
Matt J il 15 Ott 2020
Modificato: Matt J il 15 Ott 2020
One way:
'1001' - '0'
ans = 1×4
1 0 0 1

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by