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

1 vue (au cours des 30 derniers jours)
Javadkhan Gurbanov
Javadkhan Gurbanov le 15 Oct 2020
Commenté : madhan ravi le 15 Oct 2020
How do I split '1001' - char array, into 4 separate bits?
  1 commentaire
madhan ravi
madhan ravi le 15 Oct 2020
Why did you ask the same question twice?

Connectez-vous pour commenter.

Réponses (1)

Matt J
Matt J le 15 Oct 2020
Modifié(e) : Matt J le 15 Oct 2020
One way:
'1001' - '0'
ans = 1×4
1 0 0 1

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by