insert binary number and store it in array

조회 수: 10 (최근 30일)
Bayan
Bayan 2012년 3월 31일
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일
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개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by