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.

Converting QPSK to OQPSK in scilab

Status
Not open for further replies.

jayo57

Newbie level 3
Joined
Mar 22, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Ireland
Activity points
1,315
Hi,
I need to convert the following scilab code from QPSK to OQPSK. I know the Q channel signal needs to be offset from the I channel signal, but I don't really know how to do this, any help would be much appreciated.

interpx = 64;
bits = 256;
data = round(rand(1, bits));
data1 = 2.*data - 1;
data2 = zeros(1, bits*interpx);
for m = 1:interpx,
data2(m:interpx:bits*interpx) = data1 ;
end
t=0:1/2:(bits*interpx/2) - 1/2;
carrier1 = sin(t);//Q channel signal
carrier2 = cos(t);//I channel signal
scf(0)
//plot(carrier1)
//zoom=[0,-1,100,1]
//zoom_rect(zoom)
//scf(1)
//plot(carrier2)
//zoom=[0,-1,100,1]
//zoom_rect(zoom)
bpskwave1= (carrier1.*data2);//multiple carrier1*data2
bpskwave2= (carrier2.*data2);//multiple carrier2*data2
qpsk=(bpskwave1+bpskwave2)
 

Can somebody even point me in the direction of some oqpsk code written in matlab/scilab. Also if anybody has matlab/scilab code for PI/4 QPSK and 16 QAM it would really help.
Thanks.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top