What are the functions to do serial to parallel conversion? And reverse ?
Ältere Kommentare anzeigen
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 Kommentare
Anushi1998
am 28 Jun. 2016
You can refer to above mentioned link
Amilton Pensamento
am 21 Okt. 2022
@Irina Popescu, did the two functions in the link below worked for you?
Antworten (0)
Kategorien
Mehr zu Pulse width modulation (PWM) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!