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 a code for amplitude, frequency and phase shift keying

Status
Not open for further replies.

SandhyaS89

Newbie level 1
Joined
Mar 24, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
Amplitude Shift Keying

hi i need a code for amplitude, frequency and phase shift keying......
please help....
 

Re: Amplitude Shift Keying

Hi my Friend,

See the following Matlab program for 64-QAM: you can modify it according to your request !!!



clc;

clear all;close all;

disp('M-Array QAM Modulation')

%create a random digital message

M=64; %alphabet size

x=randint(input('Number of binary bit stream = '),1,M);

y=modulate(modem.qammod(M),x);



%% transmit signal through an AWGN Channel

ynoisy=awgn(y,input('SNR in dB = '),'measured');

scatterplot(y),grid;

figure(2)

pwelch(y)

%% Create scattet plot from noisy data



scatterplot(ynoisy),grid;

%% Demodulate ynoisy to recover the message.

z=demodulate(modem.qamdemod(M),ynoisy);

figure(4);

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)



Regards.
 

    SandhyaS89

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top