Wireless Assignment1
Wireless Assignment1
EXPERIMENT - 1:
1. AIM/OBJECTIVE:
To understand the process of sampling a con nuous- me signal and visualizing its
discrete me representa on.
Write a MATLAB program to perform the following tasks:
a) Generate a con nuous- me sine wave signal 𝑥(𝑡) = 𝐴 sin(2𝜋𝑓𝑡 + 𝜙), where 𝑓 is the
frequency and 𝜙 is the phase.
b) Sample the sine wave at the defined sampling frequency 𝑓𝑠 to obtain the
discrete me signal 𝑥[𝑛]. Use an oversampling rate 𝑁 to define the sampling
frequency 𝑓𝑠 =𝑁𝑓.
So ware/Hardware Requirements:
MATLAB
THEORY:
Sampling a con nuous- me signal means measuring its amplitude at regular intervals to
create a discrete version. To avoid aliasing, the sampling rate must be at least twice the
highest frequency of the signal, as stated by the Nyquist-Shannon theorem. This results in a
series of points represen ng the signal over me.
Formula :
fs > 2*fm
fs = sampling frequency
fm = maximum frequency
CODE:
a=1;
fm=10;
theta=pi/6;
fs=3*fm;
n=0:1/fs:3/fm;
y=a*sin(a*pi*fm*n+theta);
subplot(2,1,1);
plot(n,y);
xlabel(‘Time------>’);
ylabel(‘Amplitude----->’);
tle(‘Sampling a Con nuous me signal’);
subplot(2,1,2);
stem(n,y);
xlabel(‘Time------>’);
ylabel(‘Amplitude----->’);
tle(‘Sampling a Discrete me signal’);
GRAPHICAL REPRESENTATION:
CONCLUSION:
2. AIM/OBJECTIVE:
To simulate Rayleigh Fading channel and analyse the impact on the communica on systems.
Write a MATLAB program to perform the following tasks:
a) Simulate the Rayleigh Fading channel.
Ques on: How does the presence of a line-of-sight (LOS) component affect the signal
quality?
So ware/Hardware Requirements:
MATLAB
THEORY:
In a Rayleigh fading channel, the absence of a line-of-sight (LOS) component typically leads to
significant signal degrada on due to mul path interference. When a LOS path is present, it
enhances signal quality by providing a direct, strong signal that can improve overall
communica on reliability and reduce fading effects.
Formula :
R=sqrt(X^2+Y^2)
Where X and Y are zero mean Gaussian Random Variables with equal varience.
CODE:
clc;
n=1e6;
n1=randn(1,n);
n2=randn(1,n);
h=sqrt(n1.^2+n2.^2);
[num,edges]=histcounts(h,'Normaliza on','pdf');
l=length(num);
num(l+1)=0;
plot(edges,num);
xlabel('h----->');
ylabel('PDF ----->');
tle(‘Rayleigh Fading channel’);
Results and Observa ons:
GRAPHICAL REPRESENTATION:
CONCLUSION: