how to convert binary data from serial to parallel??
12 次查看(过去 30 天)
显示 更早的评论
i am doing coding of OFDM. i need to convert the serial binary data to parallel form.
2 个评论
Walter Roberson
2013-2-25
Is this question about Simulink, or is it a question abou using a serial to parallel hardware interface?
回答(2 个)
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
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?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!