ICT 306 Lab Reports
ICT 306 Lab Reports
ICT 306 Lab Reports
NA n1 1.4 < (n1 , n2) < 1.5 (n12 - n22 )1/ 2
and and 0.14 to unit
n2 n1 > n2 0.20 less
The Matlab Code:
clc;
clear all;
n1=input('index of core=');
n2=input('index of cladding=');
%NA=((n1^2)-(n2^2))^(1/2);
NA = 0.13;
Vnumber = pi*d*NA/Lamda;
disp(NA);
disp(Vnumber);
else
end
MFD = 2*(d/2)*(0.65+(1.619/(Vnumber^(3/2)))+2.879/(Vnumber^6));
MFD = round(MFD);
disp(MFD);
Experiment no: 02
Name of the experiment: Calculate for Graded Index
Fibers(using MATLAB):
a) Graphical representation of core refractive index n1[r] w.r.t. radius(a)
Solved:
Experimental table:
Input Boundary limits Formula Expected Units
output
for inputs
∆ n1[0] 1.4 < (n1[0] , n2) < 1.5 (n1[0] 2 - n22) / ( 2 n12) 0.001 to 0.10 unit
less
and and
n1[r] n1[0] 1.4 < (n1[0] , n2) < 1.5 n1[0] * (1-2∆(r/a)α)1/2 n1[0] < n1[r] <
n2
and and unit
less
∆ n1[0] > n2
and and
and and
α 0 < r <= a
1< α < ∞
NA[0] n1[0] 1.4 < (n1[0] , n2) < 1.5 (n1[0]2 - n22)1/ 2 0.14 to 0.20 unit
less
and and
a 0 < r <= a
or
NA[r]
clear all;
r = input ('enter the radius in micrometer at which acceptance angle is to be fined =');
a = d/2;
del = ((n1axis^2)-(n2^2))/(2*(n1axis^2));
R = [0:1:a];
n1r = n1axis;
NA = NAaxis;
l = a+1;
end
disp (theta);
plot(R, n1r);
grid;
plot(R, NA);
grid;
Experiment no: 03
Name of the experiment: Calculate for Step Index Fibers(using
MATLAB):
a)Numerical aperture
b)Acceptance angle
c)Solid acceptance angle
d)Propagation constant
Solved:
Experimental table:
Input Boundary limits for Formula Expected Units
required inputs output
NA n1 and n2 1.4 < (n1 , n2) < 1.5 (n12 - n22 )1/ 2
θa (n1 and n2 ) 1.4 < (n1 , n2) < 1.5 Sin-1[(n12 - n22)1/ 2]
or
and or 00 to 250 degree
NA
n1 > n2 Sin-1(NA)
Ω (n1 and n2 ) 1.4 < (n1 , n2) < 1.5 π(n12 - n22)
or
and or
NA
n1 > n2 π(NA)2 radian
or
or
θa
πθa2
β (n1 , n2 ,λ)
1.4 < (n1 , n2) < 1.5 (2π n1 / λ)Cos(θa)
or and or
(n1 ,θa , λ) n1 > n2 (2π n1 / (2πn1/ λ) < degree/μm
λ)Cos(Sin-1[(n12 -n22)1/2]) β<
and (2πn2 /λ)
clc;
clear all;
NA = ((n1^2)-(n2^2))^(1/2);
disp(NA);
theta = asind(NA);
disp(theta);
ohm = pi*(NA^2);
disp(ohm);
beta = (2*pi*n1/lamda)*cos(theta);
disp(beta);
Experiment no: 04
Name of the experiment: Calculate for Step Index Fibers(using
MATLAB):
NA n1 and n2 1.4 < (n1 , n2) < 1.5 (n12 - n22 )1/ 2
θ (n1 and n2) 1.4 < (n1 , n2) < 1.5 Sin-1[(n12 - n22)1/ 2]
a or
and or 00 to 250 degree
NA
n1 > n2 Sin-1(NA)
or and or
(n1 ,θa , n1 > n2 (2π n1 / λ)Cos(Sin-1[(n12 -n22)1/2]) (2πn2/λ) degree/μm
λ) < β<
and (2πn1/λ)
1.1μm < λ< 1.7μm
b n1 and
1.4 < (n1 , n2) < 1.5 k=2 π / λ 0 to 10 unit less
n2 and
and and
β and n1 > n2 [(β 2/ k2)- n22]/( n12 - n22)
λ and
and
V (a and λ 1.4 < (n1 , n2) < 1.5 (2πa/λ)[(n12 - n22)1/ 2 0 to 12 unit less
and n1 and
n2) and or And
(a and NA and or
and Vc) 0.3 μm < 2a < 25 (2πa/Vc) * NA
μm
clc;
clear all;
NA = ((n1^2)-(n2^2))^(1/2);
disp(NA);
theta = asind(NA);
a = d/2;%radius of core
k = 2*pi/lamda;
disp(beta);
b = (((beta^2)/(k^2))-(n2^2))/((n1^2)-(n2^2)); %normalized
propogation constant
disp(b);
Vnumber = pi*d*NA/lamda;
disp(Vnumber);
else
end
x = [1:1:12];% X-axis b- 1 to 12
y = 1-(((a^2)*(((n1^2)*(k^2))-(beta^2)))/(1^2))
for i = x(1,2):x(1,12)
y = [y,1-(((a^2)*(((n1^2)*(k^2))-(beta^2)))/(i^2))];
end
figure(1);
plot(x,y);
grid;
xlabel('Vnumber(unitless)--->');
y1=[(pi*d*NA)/800];
for j=x1(1,2):x1(1,1201)
k=2*pi/j;
y1=[y1,(k*d*NA/2)];
end
Vc = 2.405;
CutoffWavelength = pi*d*NA/Vc;
CutoffWavelength = round(CutoffWavelength);
figure(2);
plot(x1,y1);
hold on
h = stem(CutoffWavelength,Vc,'LineWidth',1);
set(h,'MarkerFaceColor','red');
hold off
int2str(CutoffWavelength))});
xlabel('wavelength(nm)--->');
ylabel('V(unitless)--->');
grid;
Vnumber = pi*d*NA/Lamda;
disp('V number=');
disp(Vnumber);
Ms = (Vnumber^2)/2;
Ms = round(Ms);
disp(Ms);
Experiment no: 05
Name of the experiment: To study and analyze FDM using
MATLAB .
Solved:
clear all
close all
samples=1000;
% number of users
nos=3;
mfreq=[30 40 50 ];
freqdev=10;
t=linspace(0,1000,samples);
parfor i=1:nos
m(i,:)=sin(2*pi*mfreq(1,i)*t)+2*sin(pi*8*t);
end
parfor i=1:nos
y(i,:)=fmmod(m(i,:),cfreq(1,i),10*cfreq(1,i),freqdev);
end
% pass the modulated signal through the channel
ch_op=awgn(sum(y),0,'measured');
parfor i=1:nos
16
z(i,:)=fmdemod(y(i,:),cfreq(1,i),10*cfreq(1,i),freqdev);
end
% display the transmitted signal and received signal at the base station
% figure
for i=1:nos
figure (1)
hold on
plot(y(i,:),'color',C{i});
xlabel('time index'); ylabel('amplitude'); title('Signal from different users combined in the channel');
figure
subplot(3,1,1)
subplot(3,1,2)
subplot(3,1,3)
xlabel('time index'); ylabel('amplitude'); title('demodulated Signal from user at the base station');
end
figure
Signal 1:
Signal 2:
Signal 3:
Combined Signal:
Experiment no: 06
Name of the experiment: To study and analyze TDM using
MATLAB .
Solved:
The Output: