WC Record To Students
WC Record To Students
The Okumura model is a radio propagation model that was built using
the data collected in the city of Tokyo, Japan. The model is ideal for
using in cities with many urban structures but not many tall blocking
structures. The model served as a base for the Hata model.
Okumura model was built into three modes. The ones for urban,
suburban and open areas. The model for urban areas was built first and
used as the base for others.
The Hata model is a radio propagation model for predicting the path
loss of cellular transmissions in exterior environments, valid
for microwave frequencies from 150 to 1500 MHz. It is an empirical
formulation based on the data from the Okumura model, and is thus also
commonly referred to as the Okumura–Hata model. The model
incorporates the graphical information from Okumura model and
develops it further to realize the effects of diffraction, reflection and
scattering caused by city structures. Additionally, the Hata Model
applies corrections for applications in suburban and rural environments.
PROGRAM
clc ;
clear all;
d =[1 2 3 4 5]; // i n km
hb =30; // H eig h t of BS a n t e n na i n m e t r e s
hm =2; // h e i g h t of m o bil e a n t e n na i n me t r e s
fc =900; // c a r r i e r f r e q u e n c y i n MHz
W =15; // s t r e e t wid th (m)
b =30; // d i s t a n c e be tween b u i l d i n g al o n g r a d i o pa th (m)
phi =90; // i n c i d e n t a n g l e r e l a t i v e to t h e s t r e e t
hr =30; // i n m
// s o l u t i o n
dellhm = hr - hm ;
//L50=Lf+L r t s+Lms
// By COST 231 model
Lf =32.4+20* log10 ( d ) +20* log10 ( fc ) ;
L0 =4 -0.114*( phi -55) ;
Lrts = -16.9 -10* log10 ( W ) +10* log10 ( fc ) +20* log10 ( dellhm ) + L0 ;
Lbsh = -18* log10 (11) ;
ka =54 -0.8* hb ;
dellhb = hb - hr ;
kd =18 -15* dellhb / dellhm ;
kf =4+0.7*( fc /925 -1) ; 25
Lms = Lbsh + ka + kd * log10 ( d ) + kf * log10 ( fc ) -9* log10 ( b ) ;
L50 =[0 0 0 0 0];
L50 = Lf + Lrts + Lms ;
//Okumura/Hata model
ahm =(1.1* log10 ( fc ) -0.7) * hm -(1.56* log10 ( fc ) -0.8) ;
L_50 =69.55+26.16* log10 ( fc ) +(44.9 -6.55* log10 ( hb ) ) * log10 ( d ) -13.82*
log10 ( hb ) - ahm ;
xlabel (”DISTANCE FROM TRANSMITTER IN KM”) ;
ylabel (”PATH LOSS i n dB”) ;
plot2d (d ,[ L50 ’ , L_50 ’] ,[1 ,2]) ;
legends ([ ’ Co s t 231 Model ’ ; ’ Okumura/ Hata Model ’ ] ,[1 ,2 ] , opt =2)
xgrid () ;
disp (” L50 v a l u e s by Co s t 231 model ”) ;
printf ( ’%. 2 f %. 2 f %. 2 f %. 2 f %. 2 f \n ’ , L50 (1) , L50 (2) , L50 (3) , L50 (4)
, L50 (5) ) ;
disp (” L50 v a l u e s bu Okumura/ Hata model ”) ;
printf ( ’%. 2 f %. 2 f %. 2 f %. 2 f %. 2 f \n ’ , L_50 (1) , L_50 (2) , L_50 (3) ,
L_50 (4) , L_50 (5) ) ;
disp (”The r e s u l t s f rom t h e p l o t of two mo d el s shows t h a t t h e c a l c u l
a t e d pa th l o s s wi t h t h e COST 231 model i s h i g h e r than t h e v a l u e o b
t a i n e d by t h e Okumura/ Hata model . ”) ;
OUTPUT:
RESULT: Thus the program was successfully executed and the output was
verified
EX.NO:2 SIMULATION OF MULTIPATH FADING CHANNELS
clear;
xdel(winsid());
sym=10000;//No . of s ym bol s
data1 = grand(1,sym,"uin",0,1);
snr=1:20;//s i g n a l to N oi s e R a tio
for k =1:1:length(snr)
H1=1/sqrt(2)*(rand(1,length(bpsk_mod),'normal')+
%i*(rand(1,length(bpsk_mod),'normal')));
// R a yl ei g h f a d i n g g e n e r a t i o n
noise=1/sqrt(2)*(10^(-(k/20)))*(rand(1,length(bpsk_mod),'normal')+
%i*(rand(1,length(bpsk_mod),'normal')));// WhiteGa u s sia n N oi s e g e n e r a t i
on
demod_out_bpsk =1;
else real(rec1_bpsk(i))<0
demod_out_bpsk =0;
end
demod_ray_bpsk =1;
demod_ray_bpsk =0;
end
end
if rec_data_bpsk ( i ) == data1 ( i ) // E r r o r r a t e c a l c u l a t i o n of r e c e i v e
d s i g n a l by c o n s i d e r i n g o nl y AWGN Channel
errB = errB ;
else
end
errC = errC ;
else
end
end
end
snr =1:1:20;
xgrid(10);
legend([ 'BER BPSK AWGN ’ ; ’BER BPSK AWGN & R a yl ei g h ' ]);
OUTPUT DIAGRAM:
RESULT: Thus the program was successfully executed and the output was
verified
Ex.No:3 Direct sequence spread spectrum.
Aim: To generate the waveform in Direct Sequence BPSK spread spectrum.
APPARATUS REQUIRED:
PROGRAM:
clear all;
clc ;
close ;
//function [ st , mt ]= DS_Spread_Spectrum ( bt , ct_polar )
// G e n e r a ti o n of wavefo rm s i n DS/BPSK s p r e a d s p e c t r um
//t r a n s m i t t e r
// b t : I n p u t Data S e q u e n c e ( b i p o l a r fo rma t )
// c t p o l a r : S p r e a di n g co d e ( b i p o l a r fo rma t )
bt = [1 ,1 ,1 ,1 ,1 ,1 ,1 , -1 , -1 , -1 , -1 , -1 , -1 , -1]
ct_polar = [ -1 , -1 ,1 ,1 ,1 , -1 ,1 , -1 , -1 ,1 ,1 ,1 , -1 ,1]
t = 0: length ( bt ) -1;
// c t p o l a r = [ −1 , −1 ,1 ,1 ,1 , −1 ,1 , −1 , −1 ,1 ,1 ,1 , −1 ,1];
mt = bt .* ct_polar ;
Carrier = 2* sin( Ft *2* %pi ) ;
st = [];
for i = 1: length ( mt )
st = [ st mt ( i) * Carrier ];
end
figure
subplot (3 ,1 ,1)
a = gca () ;
a.x_location = ” o r i g i n ”;
a.y_location = ” o r i g i n ”;
a.data_bounds = [0 ,-2;20 ,2];
plot2d2 (t ,bt ,5)
xlabel ( ’t ’ )
ylabel ( ’b ( t ) ’ )
title ( ’ Data ’ )
subplot (3 ,1 ,2)
a = gca () ;
a . x_location = ” o r i g i n ”;
a . y_location = ” o r i g i n ”;
a . data_bounds = [0 , -2;20 ,2];
plot2d2 (t , ct_polar ,5)
xlabel ( ’t ’ )
ylabel ( ’c ( t ) ’ )
title ( ’ S p r e a di n g co d e ’ )
subplot (3 ,1 ,3)
a = gca () ;
a . x_location = ” o r i g i n ”;
a . y_location = ” o r i g i n ”;
a . data_bounds = [0 , -2;20 ,2];
plot2d2 (t ,mt ,5)
xlabel ( ’t ’ )
ylabel ( ’m( t ) ’ )
title ( ’ P ro d u c t S i g n a l ’ )
figure
subplot (3 ,1 ,1)
a = gca () ;
a . x_location = ” o r i g i n ”;
a . y_location = ” o r i g i n ”;
a . data_bounds = [0 , -2;20 ,2];
plot2d2 (t ,mt ,5)
xlabel ( ’t ’ )
ylabel ( ’m( t ) ’ )
title ( ’ P ro d u c t S i g n a l ’ )
subplot (3 ,1 ,2)
a = gca () ;
a . x_location = ” o r i g i n ”;
a . y_location = ” o r i g i n ”;
a . data_bounds = [0 , -2;20 ,2];
plot ( Carrier )
xlabel ( ’t ’ )
ylabel ( ’c ( t ) ’ )
title ( ’ C a r r i e r S i g n a l ’ )
subplot (3 ,1 ,3)
a = gca () ;
a . x_location = ” o r i g i n ”;
a . y_location = ” o r i g i n ”;
a . data_bounds = [0 , -2;20 ,2];
plot ( st )
xlabel ( ’t ’ )
ylabel ( ’s ( t ) ’ )
title ( ’DS/BPSK s i g n a l ’ )
endfunction
bt = [1 ,1 ,1 ,1 ,1 ,1 ,1 , -1 , -1 , -1 , -1 , -1 , -1 , -1]
ct_polar = [ -1 , -1 ,1 ,1 ,1 , -1 ,1 , -1 , -1 ,1 ,1 ,1 , -1 ,1]
[ st , mt ]= DS_Spread_Spectrum ( bt , ct_polar )
RESULT: Thus the program was successfully executed and the output was
verified
EX.NO:4 TO FIND MULTIPLE ACCESS SPECTRAL EFFICIENCY FOR
TDMA
THEORY:
RESULT: Thus the program was successfully executed and the output was
verified
Ex.no: 5 EQUALIZER
fs=1e6;
f1=50e3;
fsymb=20e3;
wf=wf_init('qpsk');
b=prbs(10);
mod=mod_init(wf,fs,f1,fsymb);
[mod,x]=mod_process(mod,b);
clf();
subplot(311);
plot(x);
xlabel("frequency");
ylabel("amplitude");
title("transmitter.input.without.noise");
y=awgn(x,.2);
subplot(312);
plot(y);
xlabel("frequency");
ylabel("amplitude");
title("equalised.output");
OUTPUT:
Result: Thus the Wireless Channel Equalization was simulated and the output was
verified.
EX.NO:6 TO FIND MULTIPLE ACCESS SPECTRAL EFFICIENCY FOR
FDMA
THEORY:
PROGRAM:
RESULT: Thus the program was successfully executed and the output was
verified
EX.NO:7 TO FIND MULTIPLE ACCESS SPECTRAL EFFICIENCY FOR
CDMA
THEORY:
RESULT: Thus the program was successfully executed and the output was
verified