Professional Documents
Culture Documents
Expt5 8
Expt5 8
There eliable
displaysdon
DiagnamEye" )SINC
2 fo ialenfene) Theory
gimilan Component Esperiment
Reguined oftheAim
The Spneading Indenfengoe
lntensobal
(ISi):
Ralsed baol HandeJane
Go}twQne
SI educig141
ellect To
anol Pulse limied with
cosine of
!
olhen
Pelse deo pule UAWanted
o
ubsegenl
Stucly
Emona horoane
nalne noiseths ATLAR
9iqnel methocls beyanoli
distontioa
pheromena sigoali ot Tele inkensgabol
Can ot 22029
sabols com
hit
disfortions ichannd
wse maki
gnature
eachers ghbauni
puau.allousd tnainen b onol
plse he
a
the interfonon
MALAB.
can snapig mehod tioe be kit,
Camuncation
be previous wie),
pulsL io
stdiel infenya ce PageNo. Date
/02/2%93
which
0i
Shapiy ad
leisSymbal ore
l oS
Qnd Can
sbl
tape eye
haue
BIMULINk
RESUL
NATAB
Editor-
mm
\Users\Priyanka\DOCuments\MATLAB\DCMATLAB5.m
title(Signal
storted
sps)
ieved
eyedi xsubplot
(x) noise')
plot with rolloff
=6;= Clc;
Spsspan
sie len b=DCMATLABA.m
10:
subplot
(2,1, (2,1,1)
2)stem(d)
awgn(sig,0); d=
=
rcosdesign(rolloff, clear
upfirdn
2."randi( 100;
1;
all;
(d,
b, [O DCMATLAB5.m
close
sps); 1), SFilter
no. cf
len,% ll
Xpassing adding pan,
ignal') sampleper
1);
sps);
span
fàctor
Diogran)Eye
AlwGII in +
signal
sy
SI1R Raised
ymbol
mbols
with =
0dB
noise cosine
by FIR
raised
shaping
cosine
filter
filter
Expt.No.
(i) nale "
SIMULINK V Panaelen
Simlink
Model
)
Time
eppasning
2ero defines
be feakunes
Tim"ing
Random
Integer
Generator Rardom
Inleger
Aw
Recanglon Pandom opmum
ChN alway
al
Sonsilivity ciogs
chael!
Sample
tinellia he
Rectangula
Modlator
Baseband
OAM
16-0AM Cosine ladegen whic alcime
innegularilley filler Sempling
I6- filfen he
ienval
Raised
Cosre
Transmit
Fites Squareroot
lnilial Trensmit Cenernalon the
The Olpul
ln
AM' time
eye he
fed sensiivity an
M.ory
! over
ne of
DiagramEye
Oulpuls{llen fdoll pallena in
ceiver The
67 nnbens 6 hene he the
the
,Sanple o}
CharnelAWGN AWGN
somple
is is
fone
distontedwidla
neceiver
7
facton!o. ller
clelerymined
closool oplmun
Saplignon-
Span of
pen Fi
DiagramEye !
IMon
ulput binany the
ppa and PageNo. Date
syahols8
ybols-3 ye
sampling bA thene wwefon
openig
he
wil
File
Edit
1 2 -2
1
0 0 2 View
10
9
Insert
200
20
Iools
Desktop
400
distorted
recieved
signal
40 Signal
noise
with
Window
600 50
DiagramEye
Teng
Help
60
800
70
80
1000
90
1200 100
ExptNo. .
reiseo . " "The plse:
DLSCus5
cinceutfor Harduare
Peull withod breughthe AwGN
lo lo" Deighbouning
Rased
cosie pulse
pulsehave Siac 1on :
Simwlink MATLAB pR):
eMONA
Ave
biskit
(
Ca
GnSTEKse07E
usian,
ohite
Noise
XXXX
Expt.No,
dioqran
obBainedl on
cotd Corleon: CcantBandFor
This
e he DNON
obserued
hendJQne
eperimen{
bËwene
chasgig kit.
Jmitigthe bskiiL
drgit.E
MATLAG has
the been
Teacher'
ignatures AwGN a
120ECoY penfor.med
and he
sIMrLINK. channel :fohanne
orgsigrel OD0-R07A
nTEK
VA
Sgt
1 PageNo. Date
changeheminThe
uccess Sarotiotts 23
Ee
kally
reneraon
BPsk! o
BPSK
Dela
Bpola
pradees
Madelaid BPS
Expt.No.
inpt
othen Sine o4
waue
Fever9als Binang
Reuensa
keg Qmpliude,
annien RESigralTheony' Appanatuy
PaquiredB|Co-elti
ci-)
ed 4hol
MULINK abes Aim ol
inpulhe
modlotor, Modulolon BPsk
moduleton inont
The te Modulolion Howare SoBtwane
VSed uscol
Write
is 6
the Enperiment the
bits. Psu canverdd Model
modaletion
For Pnegun
(
oalance Bcherme,
wh'ch BPsh)
This
c is randon
Pon binany
high weueinThee
Zer ml isTwo to a
The for crprocesa Emmoa SIMULINK
MATLABand BPsk
inpl, o modu aleo phase code
tig Bpsk Sinusooal sequence
blo mess laled phay
binay loton ossuning(
ca aa Telecom
fon
he he is b4
gnature
acher's
done dagran being Carnieros2- (o
twhich uhich of
a
phaseinpl wo onwauern Tnain o z 's
erbinany
Sapal wsi he dahes
phose lso)
intormelooan nose anal
, hay en
revensal the of Psk P'ageAM
No. 093
a cigtod repre3ent by
hil
ag o's Date1/3/2
the
BPsk too psh and
applialbalance
phase DsL-Sc vorying
is Care phae phee or doa)
conslsts aonmn two
(o. wil
al he a
be
Jemolulekor
Receivon,AE
Molulain
proul
ExptNo. .
94) BPSK
baiconeThis is
funclin bin helpbardpasCons'ss
So
ay The
o
Demodulator:
The
/Tb
2EL
bindaro ineit
oletertor
mitune band o}
2 one- Tb
T5 Sot messge Ritien
a
limittool miatune
inen ad psu ,
( cineeif
signa tewo-inpul a
sional BPsh)
ane
Ty cith
message
arol
moduloto ymbo
le?ince is
onsillab blc
produced delecton cal o
hene bardpas
eachcrs
gnature
siqnad
2E
,Fo Ty nam
becaye hy ciruitE
Rier, s
Enengs/
tnangsion
the
necovened
oi
PageNo.
i! bit The Besk Date
bit
ngiry clockogin a deodluloton 95
wih
nate the
ny
HATLAourpuT
Expt
coE:
MATLA
fs Tb Eb %
%our10.Ne dear
wreform
f1N
or i % 1, (.=bits frequenCy
Vp= polar %arrier
%fc3;
Pararmeters
signals demodulation
% r_modulated
Plot r_symbols
rbits %BPSK t1/fs%BPSK bits(i) 1= Here Generate
(modulated); sutbplot
(4,1,3
plot ); signa>):
label('Polar
title (0:NÍs-1, plot (Transmitted
(4,1,2),
subplot
polar):
axis eridon dabelbits); subplot
(4,1,1);
title stem polarbits(i)
elseif[polar
polar 30,
(Demodulated stem
subplot
(4,1,4);
(Bit title b
xlabel
Indey dabel title 1; 1, al,
([0 (0 =bits = we
rand %enerEI
%bit dose
(0 (Time
(BPSK
(Time N"fs ('Bit :N-1, x_bits(1: = modulation 1/is : (polar %samplng
:N-1; (x
=
encode random
[0,1),1, humber btsof all,
(Value");
Inder).
ylabel polar."sqrt(2"Eb/Tb)." = : duration
Index); modulated -1.5 bits), symbols
modulated." ones(1,fs)
N; ones(1,fs) (Vp)l: c,
’); ’); 0 per
rbits): fs input freguency
bits
1.5]): : t
bits'); ed end): N)
ylabel yabel ylabel > bitstrearn
0);
signar); cos(2*
(Value'): % (-Vp)]:
(^Value'); ('Amplitude'); comparator
pi* as
fc*t).cos(2"pi" bipolar
fc" tiZ
t).
cher's
ature
(M
Expt.No
Distribulien 5)
Beroul2: This)produdi 3)SpECIFICATION
SIHULINk
Saterel'o
lowen'ppen
ys probabity
Bi4 Bennoulli Car'en
3ig0
lnput inpud2no.ol Sine
heshold, 1bo.1
Since,
F2
to bloch
5nl(S9uone
wave
sotenatin nleaen
3’
qenerales
of Bln
Thneshdd' deda Samples yPuncion
Bioo,
converlen zeno ary
ports, : Sine
imit 04, here
random Ty rool
o : na
o! inpt5 Sample R
on toleulelis
!
prisdIb,per Time
bnary
time
bos
irol /o
bloc)
unbens
Tage27
ont
sina
a
.deleelen shi{ mer
BPSK
Domdutatedeuper
22 phasc-
91gnoSigno
produe he
ans
BPsk
Dic,to fopentonm leacher's
Signatur
Bin
a domolulalien
1: 2: using GinSTEK
Go
a07a Chanel
2 for
chanl
chame! code
Siare!
able
ewn
BASK and
Uene
moclolin
a o oulpul
lolg Handwane
kl,e
neting Qod
iskit
tlendeon
Petut! Demolu the
by )
(BPSu oblained
Conclusin:
Hence,
:
parl-)
keig
eHONA
T aro
Expt.
No.
Cempanalon
a
usig
dalo Rerornd
akit
necovenod
(Cinat
chyrnd
4he
HONA
bVen
shitlen
mocdul
QPsKdaio
Phse (aen
Ciotu
ConVeme 2-bid
ExptNo. .
olemuttideger
the CareryConsising. polen This Dinanyselectig
once, adTheory Appanaks
Pequinel Usirg Ain
r repr~sefed phase phose
auadrafune OseilloSuppy
Powen
Scape 4.3. 2. I
naywave MATLAB
Emoaa To of
de Sianal handaon the
ie binaryTo sequencyshif4s shi{{
retunneeenoCNRz)on.
Tele en
study
Cnperinent
aPsh psk Used tnangmision by Coheyng co
orthonormal into s in ae phose S)MULINK it
mmQuadralure
Sgndane
Bjaa
to to nent Conslantpolan tBo in kit an
modlatedseparate on whichshilH
aves w encoding 27 of MATLAG
beis diidesl anm
amplitde degree) fotookeying
achers
nature
addoel
Phase
funcionsderoted
by 3 alt
leved
bi
pain bina possible (apsk) Shitt
means ofc symbal
by
ofencoden.The lee modulollon
The Qne
keyig Page29
No. Date
Qaw is M/o3/2o93
podeoe
quadralune inplIearrien fonm a
arolQ2c). ofand (apsu)
ond o
Ebnd o}
Expt.No.
42 41 40 39 38 37 36 35 34 33 32 31 29 28 27 26 25 24 23 22 21 19 18 17 16 15 14 13 12 11 16 6 5 4
MATLAB
3
CoDE
2 1
52 51 5¬ 40 48 47 46 45
DCLABO7.m
x+ DCLABO7.m
ylabel('c1(t)');
title('carrier
m grid%
t1=0; N=10; plot(t,
2');c2);
signal
subplot(3,
on; xlabel
for ylabel("'c2(t)');
t2-Tb; ;on; title( plot
xlabel('t');
2,2) gridsubplot(3,2,1) ; %frequency
%carrier
t=0:(Tb/fs fs clc;
fc=2; Tb=1:
end i-1:2:(N-1) ('t'); c1);
(t, cl=sqrt(2/
c2=sqrt(2/
Plotting %+
Generating
message
signal
= =
end else m(i+1)
==1 if t=t1:(Tb/100)
end m(i)==1 if:t2;
else 10; clear%
01); xlabel('t');
+.01); holdon;subplot(3,2,4);
('s(t)');ylabel )%plotting
gridodd_sig+even_sig;
on; title('
plot(t,
qpsk(i,
QPSK' ;:)); qpsk = randi([e,1],1, 'carrier
bit
odd_siglength(t));
=ones(1,
m_s m_s
=ones(1,length(t));m_s c1Tb) Tb)%sampling
)
:Tb; duration all;
even_sig(i, m_s =-1*ones and*sin *cos
the (i, signal %time close
=-1*ones
QPSK :) N)
(2*pi*fc*t);
(2*pi*fc*t);
c2
= (1, ; frequency
length(t));
c1.*m_s; 1'); index all;|
signal :) (1,
=
c2.*m_s;1ength
(t));
PageNo. Date
gos 0 2
0 1
01
RESULTS
MATL AB
2 2
02
3 3
0.3
4
4 demodulated
gpskbits Binary 04 carder
slgnal 1
5
data 0.5
Input
6 6 06
bits
7 0.7
7
8 8 0.98
10
10
1 1
0.1
1 0.32
04
carrier
signal 2
OPSK 0.56
3
4 0.08
97
6 1
Expt.No.
MATLAB
(ODE
91 9 89 88 87 86 85 84 83 82 81 8 79
78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53
DCLABO7.m
L
end
%Demodulation
i=1:N-1for t1=0; xlabel('n');
t2=Tb; 'b(n)');
ylabel(
title('Binary
gridon; %plotting
stem(m); hold
off;
demodulated
title('qpsk
grid bits');
on;stem(demod) (3,2,3);
subplot
('b(n)');
ylabelxlabel ( subplot;
'n'); (3,2,5);
elseif(x1<0
X2<0)
elseif(x1<0
&& x2>0) t=tl:(Tb/100):t2;
&& elseif
X2=sum(c2."qpsk(i,:)):
if(x1>
x2>0)&2 ;
x1=sum(c1.*qpsk(i,:))
t1=t1+(Tb+.01);
t2=t2+(Tb+.01) ; end
+
demod(i)
=1; =1;
demod(i+1)
(x1>0 the
demod(i)=1;
demod(i+1)
demod =0; data message
demod(i) &&
(i+1 x2<e) input
demod
demod(i+1)=0; =0; signal
(i =1; ) bits');
=0; )
acher's
nature
PageNo. Date
31
SIMLNK
2E5ULT
No
Expt.No,
B4
5)
to chanel )Auoo
gpecilialions
AwGN 4) )Simuink 5|MULINk
Dro2rarnBo
Gpeclrun
Anolysen) ) tntegen
Device Con
Auclio Barnples
stellolion 1oiiot
speeel G no.
oi toCEnorn
covenden
3otegen
Sem brspn bit pen
Diagnam ples Coovenlen
mlimedaaud
persecody inf-eger
channel
l6 Ple
l4 lo24 )
Snat
hers
io Date
Page32
ROT when
MASIMNS
MERSANS
e
decnege
EbN
notto,
Sopped
Constellstion
LA NOT
Siopped
then
MASIMMN
Diagram1
MEASURÍMENIS
Nobe
cnaodes n
Channel
AWGN AYON
Cn
Expt.No
ilandoarne
tHenalucNe
cui fon Btfon
Handwane
cincut
doane splitHen
{on
pka
o
SigolCeett biskit
pgitol
data drita.
biskit
oultof
33
Expt.No.
Corclsian:
Cohenent Handne
The Hond
Herdsare
cineeit
Dernodulelion
apsu offor
D EHONAdocom-Troinor
givtoenla wre
dig
aPsh
ta ciret
USi
modulation
^g fon
kit
b
peiocluotien
hardwane, sh
technigue
kit cho
Gos-70A
PlnsTEX
leaher
lalure ch-tDigitod
GoTA
GinSTEK
dola
ar Even
olong Fven on
MATLAB. odd
on
demalelotlo
witthe odd bi
P'aNo.ge Date
QHen
bis
pogsiA 39
te teable
LPF.
podsr 4re
Expt.No.
Components
Reguirred :
demodualin
cohenontly
onthagenaty
preprl eneateo
Siral is dulalion
Schogaa
The waves
mo by onolag
phose
cormmunicat
ele TheorgSottwane'
GAM
Aim
changigmodulaig)
teo
Study o}
sio shi<lk¡ is he
SIMuLNK
anien ing ot
MA Experimen
ontbogoalitt
seprratd ing
a vsicg
7LARQuoolnoune
the combinodion
cJwes sIMULINK
receiuer QAM P2090a t
Cdemodulaiad)
becnte anpltude
modulatio
amplitude
tAM).
the is
ot
Qrne
widely Arnplude
amplitude and
ot
shiii anpitude
Signature
leachers
he useol MALAS.
Same keyig in
oi ghifi modulolion
moder PageNo. Date
CAsk) thos
keyig 2Manch2i23
toen Caneion canien
digiad and
for
&@AM
A/ Aegrd 2
omplitde
we
qo, have
1go,
20, foun
36
pholer
Expt.No.
Con ModulatorBAM !
proot o
mallalion De
Minen 0SCillaton
DSulladeA
olemodulotd
geltirg
wae:
-|LPE
sin2tt
LPEomduledeo
lethgh nferga
Demoduloledwave
’LPF’
cempliatd
aPS tolessin
Cemponisin Modabato
aAM
Gignal Y2sin .+
PageNo. Date
)
37 Freg
Analyzer1
Spectrum
No.
Page
Date
high
Consteltation
Dagram1
Rectangular
QAM
nig nemoves Demoduiator
16-OAM Baseband
24
Sin2aBt
Constellation
Diagran Specrum
Analyzer
Xo LPE Channel
AWGN AWGN
t
2fd
Diagean
cy
QAM
Rectangular
Baseband
16-QAM Modulator
2riet
sin
4a Simulin
Block
h
=
X2/2
Sin
X Random
Integer
Random
lntegerGenerato
Expt.
No.
Ready
500 -10 30 40
50
File 500
35 30 -15 10 Gpeete
otpu
Spectrum
File
Anayzer A
Spectrum
Analyzer1
Tools Toos
View
View
400
400
Simulation
Simulation
300
Help
Help
200
200
100 -100
Frequency
(kHz) Frequency
(kHz)
Aralyeen
100
100
BW-976563 200
200
Redangular
QAM Redangular
Hz 300
300
Sarnple QAM
Dermodulator
band|
Base Modulator
rate-1
400
400
MHZ Baseband|
T=9.999
500
500 X
Expt. No.
Stopped 8
ite05
g
a)
(letanglan
4 GAM-4
channet
wG3) 22
Simulin
-1 -0.5 PLOTMEASUREMENIS
Constellation
Diagram A
Pee Gereratn
(nfegen
Pandom
hen
lenglan
Rectangular
Fb/No Slepsize c
Amplitude
In-phase
Se
QAM
PUTbUT cif
0
Modulator l6
AM ali'ns
Basetband
Demodlaton
Stopped
Constellatiaon
Diagram1 A
Botebane
laton
Moda
o PLOT
Teacher
ature
MEASUREEMENTS
Ampltude
In-phase
Channel
AWGN
PageNo. Date
Stopped AConsteRation
05 floSo
PIOT
.hen
Diagram
MEASUREMENTS
Rectangular
In
Amplitude
phase
OAM
Modulator
Besoband
Slopped Constellation 4
05 o5
PLOT
Diagram1
MEASUREMENTS
Argituse
nçhese
AIGN
hannel
ExptNo. .
MATLAB
)7.m
29 28 27 26 25 24 23 22 forXgeneration
z=[yl,y2,
XSER z1=bi2de end y3(i,1)
y4(i,1) (N/4)
i=1:for X= ;klear
N=1e^6;
k=l; rng(2) cd
44 43 42 41 40 39 38 37 36 35 34 33 32 31 3e de2bi(rx_qam_data);rx_qam_Signal
bi_data
DCLABO7.m Xerror1
SER(sn+1)
snr=0:
SNR
SNR=13;
=error qammod(z1,16);
tX_qam_sig =
rx_qam_data y1(i,1)
(4"k);
y2=x X
k=k+1;
(i, round
and 1) DCLABSMatlab.m
all
= = (z) y3 =x( =x( =x( (rand Xno. for
symerr(rx_qam_data, BER ;
ylabel('error
%scatterplot rate'):
on; axis([e
hold snr=0:SNR,
hold end errorl
BER(Snr+1)
on; figure %SER SER(Snr+1)
=error/
error
(N/4);
bi symerr=error/ ;% , (4*K)
(4"k)(4"k)
h=scatterplot
_signal,1,0,
ved',
legend
d');
tterplot xlabel
('SdB'
NR,); ); semilogy
semilogy
('SER','
legend
BER' = of y4 (1, close
of abl
calculation
data = converting ];%
and DCLAB8Matlablogicm
DCUAB8Matlab.m %awgn(tx_qam_sig,
(bi_data,z); qamdemod
16-QAM -3); -2); -1); N)) bits
= Symerr(rx = (N/4) collecting all;
= ;Sgenerate
12 (Snr, (snr, BER symerr
de2bi(rx_qam_data) transmitted x
= ; (rx
(rx_qam_signal,16);%demodulation sequence clc
DCLABSMatlablogic
ig,1,0, 10^(-5) BER, SER, VSerror1/ rae
into
SNR (bi_data,
'r')igrid
'b') X_qam_data, z1); 4
decimal random
1]); plots (N); bits error
snr);Transmission
1Symbol
z); together binary
on; z1) m
'gx' ;
error
; data
,h) 'r.'); XSymbol
rate
of
error
+
X 16
QAM
rate
data
Page29
NoDate
over
AWGN
channel
MATLAA
GER error rate
EdiFilet
Figure 1
10 10 10 102 10-1 10
0
View
outat
Insert
Tools
2
received
transmitted
Desktop fen
4
Window
SE
SNR,dB
Scatter
plot 6 Help R
n-Phase
anol
BER
10
BER SER
12
[Bealken,
ExptNo. .
MATLAo
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 1
5
49 48 47 46 45 44 43 42
4 39
38 36 35 34 33 32 31 3 28
DCLABO7.m
8 7 6 4 DCLABO7.m
3 1
(1,txqamsig(1,
z1(i)==14 txqam_sig(1,i)=
complex(3,3);
txqam_sig(1,i)=
txqan_sig(1,i)=
else elseif
am_sig(1, complex
z1(i)==12
z1(i)==13
elseif
txqam_sig(1, elseif
z1(i)==11 txqam_sig(1,
(3,1);elseif elseif
z1(i)==9
elseif
complex txgam_sig(1,i)=
txqam_sig(1,
txgam_sig(1,i)=
complex(-1,1);
z1(i)==8z1(i)==7
elseif elseif txgam_sig(1,i)=
complex(-1,complex(-3,1);
txqam_sig(1,i)=
complex(-1,
-1);
z1(i)==5
z1(i)==6
elseif elseif -3); txqam_sig(1, z1(i)==1
elseif z1(i)==2
elseif z1(i)==3
z1(i)==4 elseif elseif
txgam_ %generation
txqam_sig=(];
txqam_sig(1, ==01:N/4
z1(i) fori= z=(y1, yi(i,1)=x(4*k);
ifz1=bi2de(z) y4(i,1)y3(i,y2(i,1)round(rand
Pnd (N/4) N=10^6;clear
i=1:for k=1;rng(2);
(1, X= code
%|DCLAB8Matlab.m X
k=k+1;
y2, 1) DCLAB8Matlab.m
all
z1 sig(1,i)= =x( =x( =x( %no. teon
(i) y3, ;
i)= i)= ==10 i)= i)= i)= i)= of ;% (4*k)(4"k)(4*k) close
i)= i)= y4];% of
converting
16-QAM
complex(1,
omplex(1,
,1) complex(1, complex(3, complex(-1, complex(-3, complex(-3,
complex(-3, -3); -2); -1)
N));%generate bits ndig
× collecting ; a11;
DCLAB8Matlablogicm sequence transmitted
-1)(3, ; DCLAB8Matlablogícm
clc
into
;
3) -1) -3);
;
-3); 3); 3) -1); -3); ymbul
; ; 4
decimal random
bits
together binary Errun
*
data +
Rete
[logc
PageNo. Date
Boel
7
File
Figure 1
orror rato Edit
10 10 10-1 10°
VicwN
Fie
Insert
Scatter
EdFgrePot
Toos
Vew 2
nsert Desktop
Tools
4
Window
Scatter Desktop
SNR,dB
Window
Help
plot 6
Help
8
transmitted
received
10
SER
(Bcottenpla) 12
Expt.No.
DUABO7.m 1
31112 111 110 109 108 107 106 105 104 103 102 101 1ee
95 91 89 88 87 86 85 81 79 78 77 76
75 74 73 72 71 7e 69 68 67 66 65 64 63 62 61 60 59 58
S5 54 53 52 51
DCLAB07./n
99
XThreshold
noisy(Snr+1,
received=noisy; end snr=0:
for12 end end
figure end :)= end
XSER(4*e)/N;
ser(i, h=1:i-1:13
N/4
detected_sig=complex(realsig,
for
forimagsig): end m=1:1> =0iquadrat
real(received);
forrealsig
imagsig = =
0;inphas =
noisy=lJ; %
h)
1,0,
g, hold
ylabel('error
on, rate);
legend('SER'):
catterplot hold
on;
Snr=:12;
SNR, semilogy
xlabel(
dB');
end
e=e+1;
eLse
sig(i,h)==txqam_sig(1,h))
if(detected_ e=0;
end
DCLAB8Matlablogicm
DCAB8Matlab.m +
k=1:N/4for
DCABAMatlab.m
terplot axis( vs
:13
SNR e=e; end
elseif(quadrat
elseifelseif if(quadrat elseif(inphas if(inphas
end elseif(inphas
elseif(inphas
imagsig(m,
k)=1; inag(received);
Detection
[0 plots imagsig(m,
imagsig(n,k)=3;
(m,k)=-1;
imagsig cealsigcealsigcealsigrealsig )=
(quadrat
(quadrat
12
ser,'r)grid
(snr,
on; aWgn(txqam_sig,
(m, (m,
10^(-5) k) (m, (m, (m, (, k X
k)
(m, (m, (m,k) (m, (m, (m, )
eceived >=0 k) k) k) k)>=0 DCLAB8Matlablogicm
= k) k) k)
k)<-2)
3;
- k) = =3; =-1;
- =1; &&
>2 > && 3;
<-2) >2) -2>
-2
) inphas
&S quadrat &3
1)); snr);
quadrat(m, inphas
(8, (m,k)
(n, %
k) (m, Transmission
),1,0, : <2)
<2)
k)
k)
<) +
<e)
r.);
of
16
QAM
data
over
PageNo Date
AWGN
channel
Expt. No.
MATLBcodefer
31 36 29 28 27 26 12 1)
50 49 48 47 46 4 43 38 35 34
DCLABO7.m 25 24 23 22 21 2¬ 19 18 17 1e 13 14 13 7 6 DCLABO7,sn
3 2 1
txqan_sig(1,i)=
complex(3,1);
z1(i)==12
elseif txqan_sig(1,i)=
Sxgam_Sig(1,
z1(i)==10
txgam_sig(1,i)=
complex(3,3);
z1(i)=-11
elseif elseif
z1(i)==9
elseif
sig(1,i)=
txqam txgam_sig(1,i)=
txgam_sig(1,i)=
complex(-1,3);
z1(i)==7
complex(-1,1);
z1(i)==8
elseif z1(i)==6
elseif elseif
txgam_sig(1, z1(i)==4
zi(i)==5
elseif elseif
txgam_sig(1,i)=
txqam_sig(1,i)=
3);z1(i)==13
m_sig(1,i)=
complex(1,
plex(1,
(1,i)=
z1(i)==14
else elseif elseif
-1); *DCLAB8Matlab.m
y3(i,1)=x(k-2) ; i=1: N=10^6;
X= clear
for k=4;rng(2);
elseiftxqam_sig(1,i)=
complex(-3,
txgam_sig(1,i)=
z1(i)==3 txqam z1(i)==1
z1(i)==2
elseif z1(i)==0
elseif iffor i= y4(i,1)=x(k-3);
%generation
-3); z1=bi2de(z);%
1:N/4
txqam_sig=[]; z=[y1, end
y2(i,1)
yi(i,1)=x
(k); X
round
k=k+1; DCLAB8Matlab.m
i)= i)= sig(1,i)= y2, all;
=x(N/4) %no.
complex(3,-3) ;
complex(3, complex(-1, y3, (k-1) (rand(1,
complex(1,
-3); complex(
-3);-1,
complex(-
% of y4 close
of
DCLABO8Logicforbitrate.m converting
16-QAM ] ;
;% N) bits
-1); complex(-3,
3, complex(-3,
-1); );1 collecting );%generate all;
transmitted
sequence DCLABO8Logicforbitrate.m
clc error
into
3); -1)
X+ decimal 4 random
; bits
together binary
data %+
PageNo. Date
error rate
10 10*2 10* 10
10-5 104
File A
EditFiqure2
View
Scatter
Teceived
uansmitted Insert botd)
BER
ogie
Plot
Tools SNR,dB
6
Scatter
plot Desktop
se
Window
Help
10
BER
12
BEeR/N
Expt.No.
S7 $2 51 m
CAB07
58 67 63 62 61 6e
78 77 76
75 74 71 7 59
102 101 89 88 87 86 84 83 82 81 80 79 DCLABO7.m
112 111 110 109 108 107 106 105 104 103 100
99 98 97 9
94 9 91
Theechald endnoisy=[);
noisy(snr+l,
snr=e:12 for end end
inagsig
forrealsig
m=l:13 inphas
-[]:quadrat
C.DaAB8Matlab.m
i=1:13for end k=1:N/4for
ber(i,
(e)/N;
end :)= end h=1:N/4for imagsig);
detected_sig=complex
(realsig, X
figure %SER = =
snr=0:12;
holdon; DCLAB8Matlab.mif(quadrat if(inphas
end elseif(inphas
scatterplot
ot ylabel('error
holdon,
tterplot rate' dB');legend
('xlabel
SNR,
axis( );
('BER'):; semilogy e=e+1;
SNR
endelse
if(detected_sig(i,h)==txqam_
sig(1,h))
vs
e=e
e=0; end
elseif((quadrat
end
elseif(quadrat
k)<-2)(m, elseif
imagsig
elseif(ik)=-1;
elseif(inphas
(m,k)<-2)
realsig(m,realsig(m,k)
realsig =3;k) =1;
real(received)
imag
(received): tiot
awgn
:)=
[ (m, (m, 2
imagsig(m,
imagsig(m, k)=3;imagsig (txqam_sig,
12 (snr,ber, plots (quadrat k) (m, k)
(m, )=0 DABO8Logictorbitrate.n
>=0 k) :
(m, k)
0, 10^ (m, && -3= >-2 &8
k) X ;
received (-5) k) (m, =-1;k)(m, =1;
DCABO8Logicforbitrate.m quadrat inphas
&& snr)
'r')grid = k) k) inphas
3;- (m, ;
1]); >2) -2> (m, k) Transmission
&& k) (m, <2)
(8, <2) k) X
:), quadrat <e)
+
gx 1,0, on;
of
,h) (m,
*+ 16
'r.'): k) QAM
<)
data
over
AtiGN
PageNo. Date
channe
43
ExptNo. .
eror
Sequen cQ
Cooleon
Concluyion
We
Suclessfully
an alestuclieo
a
l4-eAM
Sygterm
plo thal aned
tted
SIMuLINh
Bi{
BERandER
eron
model
nature
chers
rote
fon analed
ymbland
mooulaon
16-aAM rwen
wrote
PageNo. Date
narslom
MATLAB