blob: cba3a1ad2a17f73bf963335d69e46db8e801d3e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Chapter 2 Example 6
//==============================================================================
clc;
clear;
//input data
E = 1.44; // Bandgap energy in eV
h = 6.625*10^-34; // plank's constant
c = 3*10^8; // vel. of light in m/s
q = 1.6*10^-19; // charge of electron
//Calculations
lamda = h*c/(E*q) // Wavelength of GaAs laser
//Output
mprintf('Wavelength of GaAs laser = %3.1f Å',lamda*10^10);
//==============================================================================
|