summaryrefslogtreecommitdiff
path: root/2198/CH1/EX1.40.21/Ex1_40_21.sce
blob: 77561481fe9022ecc1f286765a3d8daedd16b48c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Ex 1.40.21
clc;clear;close;
format('v',9);

//Given : 
q=1.6*10^-19;//Coulomb
Dn=25;//cm^2/s
x=[0 0.5];//micro meter(base width)
n=[10^14 0];//per cm^3
plot(x,n);
title('n Vs x');
xlabel('x(micro meter)');
ylabel('n(electrons per cm^3)');
dnBYdx=(n(2)-n(1))/(x(1)-x(2))/10^-4;//gradient
Jn=q*Dn*dnBYdx;//A/cm^2
disp(Jn,"Current density(A/cm^2) : ");