Need help to write matlab code for OQPSK modulation

Status
Not open for further replies.

vldim

Newbie level 1
Joined
May 24, 2010
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,280
Activity points
1,288
oqpsk

Hello guys, i am looking for the basic modulation code of OQPSK modulation for Matlab.
I have already written the code of QPSK but i cant understand the difference between this code and the OQPSK.
Does anybody have a clue to help me?
 

xa=2*randint(1,2*L)-1; % BPSK signal generation
%xb=2*randint(1,L)-1;
e_xa=xa(1:2:end-1);
o_xa=xa(2:2:end);
rc=rcosine(1,oversamp, 'sqrt');
e_filtered = rcosflt(e_xa,1,oversamp,'filter',rc)*sqrt(oversamp); %filter
o_filtered = rcosflt(o_xa,1,oversamp,'filter',rc)*sqrt(oversamp); %filter
x_deci_r=[e_filtered', zeros(1, ceil(oversamp/2))];
x_deci_i=[zeros(1, ceil(oversamp/2)) o_filtered'];


t = (0:length(x_deci_i)-1)/Fs;

tx_sig = sqrt(1/2)*x_deci_r .* cos(2*pi*fc*t) + sqrt(1/2)*x_deci_i .* sin(2*pi*fc*t);
 
Reactions: kalhor

    kalhor

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…