Ec 3501 Wirelss
Communication Lab
Manual
Uploaded by periyasamy on Dec 20, 2023
0 ratings · 93 views · 34 pages
AI-enhanced description
Document Information
The document describes the objectives and procedu…
Original Description:
Download now
Download as pdf or txt
Date uploaded
Dec 20, 2023
Copyright
EC 3501 – WIRELESS COMMUNICATION LABORATORY
© © All Rights Reserved
1. Modeling of wireless communication systems using Matlab(Two ray channel and Okumura –
Hata model)
Available Formats
2. Modeling and simulation of Multipath fading channel
PDF, TXT or read online from Scribd
3. Design, analyze and test Wireless standards and evaluate the performance measurements such
as BER, PER, BLER, throughput, capacity, ACLR, EVM for 4G and 5G using Matlab
Share this document
4. Modulation: Spread Spectrum – DSSS Modulation & Demodulation
5. Wireless Channel equalization: Zero-Forcing Equalizer (ZFE),MMSE
Equalizer(MMSEE),Adaptive Equalizer (ADE),Decision Feedback Equalizer (DFE)
6. Modeling and simulation of TDMA, FDMA and CDMA for wireless communication
Facebook Twitter
Email
Did you find this document useful?
Is this content inappropriate? Report this Document
AD Download to read ad-free
EX.NO :1 MODELLING OF WIRELSS COMMUNICATION SYSTEMS USING
DATE : MATLAB
a)Two ray channel
AIM:
To model and simulate wireless communication system for two ray channel and okumura hata model
using matlab
Software Required:
Matlab version 2014a
THEORY:
The two-rays ground-reflection model is a multipath radio propagation model which predicts
the path losses between a transmitting antenna and a receiving antenna when they are in line of sight
(LOS). Generally, the two antenna each have different height. The received signal having two
components, the LOS component and the reflection component formed predominantly by a single
ground reflected wave. When the distance between antennas is less than the transmitting antenna
height, two waves are added constructively to yield bigger power. As distance increases, these waves
add up constructively and destructively, giving regions of up-fade and down-fade. As the distance
increases beyond the critical distance or first Fresnel zone, the power drops proportionally to an
inverse of fourth power of an approximation to critical distance may be obtained by setting Δφ to π
as the critical distance to a local maximum.
PROCEDURE:
1. Start the MATLAB program.
2. Open new M-file
3. Type the program
4. Save in current directory
5. Compile and Run the program
6. If any error occurs in the program correct the error and run it again
7. For the output see command window\ Figure window
8.Stop the program.
AD Download to read ad-free
PROGRAM:
lambda = 0.3;
ht100=100;
ht30=30;
ht2=2;
hr=2;
axis=[];
p100=[];
p30=[];
p2=[];
pfsl=[];
for i=1000:5000
d=10^(i/1000);
axis =[axis d];
fspower = (lambda/(4*3.1415*d))^2 ;
power100 = fspower * 4 *(sin(2*3.1415*hr*ht100/(lambda*d)))^2;
power30 = fspower* 4 *(sin(2*3.1415*hr*ht30/(lambda*d)))^2;
power2 = fspower * 4 *(sin(2*3.1415*hr*ht2/(lambda*d)))^2;
p100 =[p100, 10*log10(power100)];
p30 =[p30, 10*log10(power30)];
p2 =[p2, 10*log10(power2)];
pfsl=[pfsl, 10*log10(fspower)];
end
text('FontSize',18)
semilogx(axis,p100, 'g-',axis,p30, 'b-',axis,p2, 'r-',axis,pfsl,'y-')
xlabel('distance in m');
ylabel('pathloss');
text(1000,-66,'blue : hr=30m');
text(1000,-74,'red : hr=2m');
text(1000,-58,'red : hr=100m');
text(1000,-50,'yellow: free space');
text(50,-180,'lambda = 0.30 m');
text(50,-190,'hr = 2 m');
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
OUTPUT:
AD Download to read ad-free
CDMA:
close all;
clc;
%N=6;
%data=input('Enter Binary Data In Form of 0 and 1 in [ ] : ');
data=[1 0 0 1 1 0 1 1];
figure('Name','Message BPSK Modulation','NumberTitle','off')
subplot(2,2,1);
plot(rectpulse(data,100));
axis([0 length(rectpulse(data,100)) -0.2 1.2]);
title('Message Signal');
xlabel('n');
ylabel('x(n)');
grid on;
data(data(:)==0)=-1;
length_data=length(data);
fc1=10;
eb=2;
tb=1;
T=1;
msg=rectpulse(data,100);
subplot(2,2,2);
plot(msg);
title('Message Signal in NRZ form');
xlabel('n');
ylabel('x(n)');
AD Download to read ad-free
axis([0 100*length_data -1.2 1.2]);
grid on;
N=length_data;
Tb = 0.0001;
nb=100;
br = 1/Tb;
Fc = br*10;
t2 = Tb/nb:Tb/nb:Tb;
t1=0.01:0.01:length_data;
bpskmod=sqrt(2/T)*cos(2*pi*fc1*t1);
bpsk_data=msg.*bpskmod;
subplot(2,2,3)
plot(bpsk_data)
title(' BPSK signal');
xlabel('Time Period(t)');
ylabel('x(t)');
axis([0 100*length_data -2 2]);
grid on;
subplot(2,2,4);
plot(real(fft(bpsk_data)));
title('FFT of BPSK signal');
xlabel('Frequency');
ylabel('PSD');
grid on;
sr=[1 -1 1 -1];
pn1=[];
AD Download to read ad-free
for i=1:length_data
for j=1:10
pn1=[pn1 sr(4)];
if sr (4)==sr(3)
temp=-1;
else temp=1;
end
sr(4)=sr(3);
sr(3)=sr(2);
sr(2)=sr(1);
sr(1)=temp;
end
end
figure('Name','PN Generation and CDMA','NumberTitle','off');
subplot(2,2,1);
stem(pn1);
axis([0,length(pn1),-1.2,1.2])
title('PN sequence for data')
xlabel('n');
ylabel('x(n)');
grid on;
pnupsampled1=[];
len_pn1=length(pn1);
for i=1:len_pn1
for j=0.1:0.1:tb
pnupsampled1=[pnupsampled1 pn1(i)];
AD Download to read ad-free
Ad
Buy Kirloskar Submersible Pump
Kirloskar Brothers Ltd. Shop Now
end
end
length_pnupsampled1=length(pnupsampled1);
subplot(2,2,2)
stem(pnupsampled1);
axis([0,length(pnupsampled1),-1.2,1.2])
title('PN sequence for data upsampled');
xlabel('n');
ylabel('x(n)');
grid on;
subplot(2,2,3);
sigtx1=bpsk_data.*pnupsampled1;
plot(sigtx1);
title('CDMA Signal');
xlabel('Time Period(t)');
ylabel('x(t)');
subplot(2,2,4);
plot(real(fft(sigtx1)));
title('FFT of spreaded CDMA Signal');
xlabel('Frequency');
ylabel('PSD');
grid on;
sigtonoise=20;
composite_signal=awgn(sigtx1,sigtonoise);
figure('Name','CDMA Reciever','NumberTitle','off')
subplot(2,2,1);
AD Download to read ad-free
Ad
Buy Kirloskar Submersible Pump
Kirloskar Brothers Ltd. Shop Now
plot(sigtx1);
title(' Tx Signal');
xlabel('Time Period(t)');
ylabel('x(t)');
grid on;
subplot(2,2,2);
plot(composite_signal);
title(sprintf('Tx signal + noise\n SNR=%ddb',sigtonoise));
xlabel('Time Period(t)');
ylabel('x(t)');
grid on;
%Rx
rx=composite_signal.*pnupsampled1;
subplot(2,2,3);
plot(rx);
title('CDMA Demodulated signal');
xlabel('Time Period(t)');
ylabel('x(t)');
grid on;
%BPSK Demodulation
y=[];
bpskdemod=rx.*bpskmod;
for i=1:100:size(bpskdemod,2)
y=[y trapz(t1(i:i+99),bpskdemod(i:i+99))];
end
AD Download to read ad-free
y(y(:)<=0)=-1;
y(y(:)>=0)=1;
rxdata=y;
subplot(2,2,4);
plot(rectpulse(rxdata,100));
axis([0 length(rectpulse(rxdata,100)) -1.2 1.2]);
title('Recieved Message Signal in NRZ');
xlabel('n');
ylabel('x(n)');
grid on;
rxdata(rxdata(:)==-1)=0;
rxdata(rxdata(:)==1)=1;
rxmsg=rxdata;
figure('Name','Diffrent SNR','NumberTitle','off')
subplot(3,1,1)
plot(rectpulse(rxmsg,100));
axis([0 length(rectpulse(rxmsg,100)) -0.2 1.2]);
title('Recieved Message Signal');
xlabel('n');
ylabel('x(n)');
grid on;
sigtonoise1=5;
composite_signal1=awgn(sigtx1,sigtonoise1);
subplot(3,1,2);
plot(composite_signal);
title(sprintf('Tx signal + noise\n SNR=%ddb',sigtonoise1));
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
AD Download to read ad-free
Share this document
You might also like
From Everand
Optimum Array Processing:
Part IV of Detection,…
Estimation, and Modulation
Harry L. Van Trees
Theory
No ratings yet
Document 24 pages
Ec3501 Wireless
Communication 1560801494…
WC Labmittapally
karunya Manual
No ratings yet
Document 2 pages
Captured Power It Is The Power
Available at The Antenna
ADSR
No ratings yet
Magazines Podcasts
Sheet music
Document 48 pages
Microwave Lab Manual
Abuzar shakeel
No ratings yet
Document 2 pages
Assignment 11 Communication
System
Divya Garg
No ratings yet
Document 3 pages
Analog and Digital
Communication Syllabus
Srinivas Samal
No ratings yet
Document 20 pages
Arrays Notes PDF
Sukhada Deshpande.
No ratings yet
Document 5 pages
Maximum Likelihood Decoding
Brksa
No ratings yet
Document 3 pages
Assignment of Amplitude
Modulation and Angle…
Modulation
Rhelf Mae Valencia
No ratings yet
Document 9 pages
Lab No. 8 H Plane
smiletouqeer
No ratings yet
Document 0 pages
Antenna Theory
Elvin Endozo
No ratings yet
Document 6 pages
15ecl48-VTU-raghudathesh-
Instrumentation Amplifier PDF
raghudatheshgp
No ratings yet
Show more
About Support
About Scribd Help / FAQ
Everand: Ebooks & Accessibility
Audiobooks
Purchase help
SlideShare
AdChoices
Press
Join our team! Social
Contact us Instagram
Invite friends Twitter
Facebook
Legal
Pinterest
Terms
Privacy
Copyright
Cookie Preferences
Do not sell or share my
personal information
Get our free apps
Documents
Language: English Download
Copyright © 2024 Scribd Inc.
AD
Ad
Buy Kirloskar Submersible Pump
Kirloskar Brothers Ltd.
Shop Now