how to convert binary data from serial to parallel??

13 ビュー (過去 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 Center および File ExchangeSimulation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by