how to convert binary data from serial to parallel??

11 views (last 30 days)
i am doing coding of OFDM. i need to convert the serial binary data to parallel form.
  2 Comments
Walter Roberson
Walter Roberson on 25 Feb 2013
Is this question about Simulink, or is it a question abou using a serial to parallel hardware interface?
Simran
Simran on 25 Feb 2013
neithr for simulink nor for hardwre interface.. i need simple for loop coding or by using reshape command.. thnx

Sign in to comment.

Answers (2)

per isakson
per isakson on 25 Feb 2013
OFDM returns 95 hits in the File Exchange

Walter Roberson
Walter Roberson on 25 Feb 2013
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 Comments
Amilton Pensamento
Amilton Pensamento on 21 Oct 2022
@Walter Roberson, thank you!
What about the other way around? How will the general expression look like to convert from parallel to serial?

Sign in to comment.

Categories

Find more on Simulation in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!