how to convert serial binary to parallel?

x=randi([0:1],1,100);
this gives binary data in serial i want to convert it in to serial. and make packet of 8 bits each to fed to IFFT Block in ofdm transmitter. please give code to achieve it

답변 (2개)

Jan
Jan 2014년 2월 23일

0 개 추천

randi does not create "binary data" but a vector of type double with integer values. I do not understand what "serial" means in:
gives binary data in serial i want to convert it in to serial
Perhaps you want:
u = uint8(x);
and the serial or fwrite command to send the data to the serial interface?

댓글 수: 2

considering input serial binary, how to generate binary in serial form and how to make packets of n bits?
Jan
Jan 2014년 2월 23일
I do not understand, what you are looking for. What exactly is "input serial binary"?

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

카테고리

도움말 센터File Exchange에서 Clocks and Timers에 대해 자세히 알아보기

질문:

2014년 2월 23일

댓글:

Jan
2014년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by