Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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);
 
  • Like
Reactions: kalhor

    kalhor

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

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top