Need source coding in matlab for the bpsk modulator

Status
Not open for further replies.

complete

Junior Member level 2
Joined
Feb 5, 2007
Messages
23
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
karachi
Activity points
1,440
matlab

hi i m doing my fnal yr project "To design BPSK modulator using DSP kit" can anyone provide me the source coding in matlab for the bpsk modulator or in any language also can anyone have used dsp "starter" kit TMS320C6711

THANX
REPLY SOON
 

Re: matlab

hi see my code here (i attached this code many times)
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)
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…