insert binary number and store it in array

11 vues (au cours des 30 derniers jours)
Bayan
Bayan le 31 Mar 2012
Hi i would to ask the user to insert binary number as that (001010111) then store this number in array each bit in individual cell , How???

Réponse acceptée

Walter Roberson
Walter Roberson le 31 Mar 2012
Use the 's' option of input()
  1 commentaire
Jan
Jan le 31 Mar 2012
Then instead of "each bit in an individual cell" you get each character in an individual element of the char vector. But this is most likely what you need. +1

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by