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 Matlab code for un-coded baseband BPSK simulation model

Status
Not open for further replies.

mkhd_2005

Newbie level 3
Joined
Apr 2, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
digital communication

hi everyone!...i'm new to this, can someone tell me the matlab code for producing a simulation model of an un-coded baseband BPSK communication system in awgen ? it should be run until 150 bit errors for a given E/N.
thanks
 

i did not understand you, would you explain more please?
 

Re: digital communication

mkhd_2005 said:
hi everyone!...i'm new to this, can someone tell me the matlab code for producing a simulation model of an un-coded baseband BPSK communication system in awgen ? it should be run until 150 bit errors for a given E/N.
thanks


Open Matlab and go to help.

Write "pskmod" and hit "go" button

A page will open. Within that page you will find an excerpt of sorts which tells you how to accomplish the task you want to do.

mkhd_2005 said:
hi everyone!...i'm new to this

And this is how you will learn... of course I could've just given the code but you won't learn that way

mkhd_2005 said:

No prob
 

Re: Need Matlab code for un-coded baseband BPSK simulation m

this is a simple code for M - PSK modulation

try it, if you need other help, contact me or you can join our groups:

**broken link removed**

and the second

http://groups.yahoo.com/group/telecom_research/



%adding a rectangular pulse shaping;
clc;
clear all;close all;
disp('M-Array PSK Modulation')
%create a random digital message
M=input ('M= '); %alphabet size
SNR=input('SNR in dB = ');
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);
L=length(y)
%%
%follow with rectangular pulse shaping.
ypulse=rectpulse(y,nsample);

%%
% Power Spectral Density plot
pwelch(ypulse)
%%
%%transmit signal through an AWGN Channel
ynoisy=awgn(ypulse,SNR,'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)


best regards
 

Re: Need Matlab code for un-coded baseband BPSK simulation m

thanks guys, i have already finished from that , the problem was i didn't have communication toolbox instaled in the matlab version that i have , so i had to figured out and do it withought it.
thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top