필터 지우기
필터 지우기

How to convert a bit sequence to array?

조회 수: 5 (최근 30일)
Pham Ngoc Thanh
Pham Ngoc Thanh 2013년 8월 23일
i have
key = 1234; bit_sequence = dec2bin(key);
how i convert bit_sequence = 10011010010 to A = [1 0 0 1 1 0 1 0 0 1 0]

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 23일
a='10011010010'
out=a-'0'
  댓글 수: 1
Pham Ngoc Thanh
Pham Ngoc Thanh 2013년 8월 23일
thank you very much it is a great answer!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by