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

1 visualización (últimos 30 días)
Javadkhan Gurbanov
Javadkhan Gurbanov el 15 de Oct. de 2020
Comentada: madhan ravi el 15 de Oct. de 2020
How do I split '1001' - char array, into 4 separate bits?

Respuestas (1)

Matt J
Matt J el 15 de Oct. de 2020
Editada: Matt J el 15 de Oct. de 2020
One way:
'1001' - '0'
ans = 1×4
1 0 0 1

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by