insert binary number and store it in array

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???

 采纳的回答

Use the 's' option of input()

1 个评论

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

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Cell Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by