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.

BPSK,QPSK demodulation code in matlab...Quite urgent plz..

Status
Not open for further replies.

jankrish

Newbie level 5
Joined
Feb 19, 2009
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,340
Please share with me BPSK and QPSK mosulation and demodulation code if u have.
I need it quite urgent.
Thank you.
 

Re: BPSK,QPSK demodulation code in matlab...Quite urgent plz

Hi,

check this one, it include some code stuff

need help with designing QPSK modulator/demodulator
 

Does any one have code for MSK and the code for displaying the spectrum of BPSK,QPSK and MSK on a single figure???
 

Re: BPSK,QPSK demodulation code in matlab...Quite urgent plz

hanif said:
Hi,

check this one, it include some code stuff

need help with designing QPSK modulator/demodulator

thanku...but its all in HDL...i want in MATLAB
 

Re: BPSK,QPSK demodulation code in matlab...Quite urgent plz

clc;
clear all;
disp('M-Array ASK Modulation')
%create a random digital message
M=input ('M= '); %alphabet size
x=randint(input('Number of binary bit stream = '),1,M);
nsample=40; %oversampling rate.
%%

%%
%use M-ASK modulation to produce y
y=modulate(modem.qammod(M),x);
%%
%follow with rectangular pulse shaping.
ypulse=rectpulse(y,nsample);
stem(y(1:10),'filled'),grid;
%%
%%transmit signal through an AWGN Channel
ynoisy=awgn(ypulse,input('SNR in dB = '),'measured');
%%
%Create scattet plot from noisy data
scatterplot(ynoisy),grid;
%%
%Downsample at the reciever.
ydownsample=intdump(ynoisy,nsample);
%%
%Demodulate ynoisy to recover the message.
z=demodulate(modem.qamdemod(M),ydownsample);
figure;
subplot(2,1,1);
stem(x(1:10),'filled'),grid;
subplot(2,1,2);
stem(z(1:10),'filled'),grid;
%%
%Check symbole erroe rate.
[num ty]=symerr(x,z)
%%
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top