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

 채택된 답변

Walter Roberson
Walter Roberson 2012년 3월 31일

1 개 추천

Use the 's' option of input()

댓글 수: 1

Jan
Jan 2012년 3월 31일
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