blob: 15d8add780445f7bb838e501c3032bc6683bc6fd (
plain)
1
2
3
4
5
6
7
|
clc;
clear all;
lambda = 6715e-10; // Wvelength of light in meters
h = 6.626e-34; // Planck's Constant
c = 3e8;
Eg = (h*c)/(lambda*1.6e-19);
disp('eV',Eg,'The band gap of the given material is ')
|