필터 지우기
필터 지우기

bits of a binary input

조회 수: 3 (최근 30일)
lina it
lina it 2012년 3월 29일
i have a binary user input saved in a non-cell how can i deal with each bit of that number independently ?
  댓글 수: 1
Jan
Jan 2012년 3월 29일
Please explain, what a "binary user input saved in a non-cell" means in valid Matlab syntax.

댓글을 달려면 로그인하십시오.

답변 (1개)

Thomas
Thomas 2012년 3월 29일
I dont know if this is what you are looking for..
c=[111111 010101 101010]
a=num2str(c)
to operate on each bit individually use
a(1) % or str2num(a(1)) and so on

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by