What are the functions to do serial to parallel conversion? And reverse ?

Hello. I'm making a code, and at the transmiter, after the block for modulation I have to do a serial to parallel conversion. And the reverse at the reception. How can I write the function ser2par or par2ser ? This is the part of code of that portion. Thanks.
%data source
N=128; %number of subcarries
M=4; %DSPK modulation
x=randi([0 M-1],N,1);
%modulation scheme
h = modem.dpskmod('M', 4,'SymbolOrder', 'binary', 'InputType', 'integer');
xm=modulate(h,x);
%S/P conversion
p=ser2par(xm,N);
%IDFT
x_ifft=ifft(p)

Answers (0)

Asked:

on 28 Jun 2016

Community Treasure Hunt

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

Start Hunting!