필터 지우기
필터 지우기

how can i convert array of bits into single bit stream?

조회 수: 1 (최근 30일)
yogya
yogya 2014년 10월 27일
댓글: yogya 2014년 10월 27일
if following is the array maj =
Columns 1 through 16
0 0 1 1 1 0 1 0 0 1 1 0 1 1 1 1
Columns 17 through 32
1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 1
Columns 33 through 48
1 1 1 1 0 1 1 0 1 0 0 1 1 1 0 0
Columns 49 through 64
1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0
Then how can i convert to a single stream of bits such that it must be
0011101001101111111001100110011111110110100111001110100000000000

채택된 답변

Mohammad Abouali
Mohammad Abouali 2014년 10월 27일
Do you mean something like this?
a=round(rand(1,20))
a =
Columns 1 through 16
1 0 1 1 1 1 1 0 0 0 1 0 1 0 1 0
Columns 17 through 20
0 0 1 0
ac=num2str(a);
ac=ac(ac~=' ');
ac =
10111110001010100010

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by