What are the functions to do serial to parallel conversion? And reverse ?
Show older comments
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)
3 Comments
Anushi1998
on 28 Jun 2016
You can refer to above mentioned link
Amilton Pensamento
on 21 Oct 2022
@Irina Popescu, did the two functions in the link below worked for you?
Answers (0)
Categories
Find more on Pulse width modulation (PWM) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!