how to convert binary data from serial to parallel??

조회 수: 22 (최근 30일)
Simran
Simran 2013년 2월 25일
댓글: Walter Roberson 2022년 10월 21일
i am doing coding of OFDM. i need to convert the serial binary data to parallel form.
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 2월 25일
Is this question about Simulink, or is it a question abou using a serial to parallel hardware interface?
Simran
Simran 2013년 2월 25일
neithr for simulink nor for hardwre interface.. i need simple for loop coding or by using reshape command.. thnx

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

답변 (2개)

per isakson
per isakson 2013년 2월 25일
OFDM returns 95 hits in the File Exchange

Walter Roberson
Walter Roberson 2013년 2월 25일
parallel_form = reshape( serial_form, number_parallel_bits, []) .' ;
For example,
parallel_form = reshape( YourData, 8, []) .' ;
This assumes you want the parallel data per-row. It also assumes that the serial data is exactly divisible into parallel frames.
  댓글 수: 5
Amilton Pensamento
Amilton Pensamento 2022년 10월 21일
@Walter Roberson, thank you!
What about the other way around? How will the general expression look like to convert from parallel to serial?
Walter Roberson
Walter Roberson 2022년 10월 21일
reshape(parallel_form.',1,[])

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by