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.

Lab Project of Digital Communication

Status
Not open for further replies.

nayeem

Newbie level 3
Joined
Dec 19, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Write a Matlab code code to implement the BPSK modulation.
 

its very simple.... just check help of Matlab you'll now what to do

or
**broken link removed**

---------- Post added at 11:45 ---------- Previous post was at 11:43 ----------

**broken link removed**

**broken link removed**
 
  • Like
Reactions: nayeem

    nayeem

    Points: 2
    Helpful Answer Positive Rating
please Write a Matlab code code to implement the BPSK modulation with which user can give input.
 

clc;
clear all;
disp('M-Array PSK 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-PSK modulation to produce y
y=modulate(modem.pskmod(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.pskdemod(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)

this program written in matlab 2008, u need to run it on this version.
 
I don't have Matlab 2008 version. Please send me the code Matlab 7 version.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top