blob: 0bc2529ab54e45efc33950e9c9b1acb022bef7be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Example no.4.2
// To calculate the voltage required to introduce a phase shift of pi/2.
// Page no.152
clc;
clear;
// Given data
lambda0=1530*10^-9; // An electro-optic modulator operating wavelength
d=10*10^-6; // Thickness
L=5*10^-2; // Length
n0=2.2; // Refractive index
r33=30*10^-12; // Pockel coefficient in m/V
deltaphi=%pi/2; // Phase shift
V=(deltaphi*lambda0*d)/(%pi*L*n0^3*r33); // The voltage required to introduce a phase shift of pi/2
//Displaying the result in command window
printf('\n The voltage required to introduce a phase shift of pi/2 = %0.2f V',V);
|