You are on page 1of 5

ASSIGNMENT

Subject information:
Course No- EEE-433
Course Title-Semiconductor Devices
Assignment on- Plotting Graphs by Matlab
Submitted to:
Farhana Afrin,
Lecturer,
Dept. of EEE
BUBT Submitted by:
1)Chinmoy Das
ID No-14152108046
2) Zayed Mohammad
ID No-14152108051
3) Abir Hossain
ID No-14152108054
4) Sumon Hasan
ID No-14152108055
5) Mahtab Alam
ID No-14152108068
6) Saif Khan Porosh
ID No-14152108075

Program-B.sc in EEE
Intake-14
Section-02
BUBT

Date of Submission: 08-05-2018


Problem-1
Write a code using Matlab for plotting a graph of electric field in the space charge
region of a uniformly doped pn junction .

Matlab Code:
xp=0.86e-4;
xn=0.86e-4;
es=(11.7)*(8.85e-10);
e1=1.6e-19;
nd=10e+15;
na=10e+15;

x1=-xp:1e-10:0;
y1=((-e1*na/es)*(x1+xp));

x2=0:1e-10:xp;
y2=((-e1*nd/es)*(xn-x2));

plot(x1,y1,x2,y2)
Output:
Problem-2
Write a code using Matlab for plotting a graph of electric potential through the
space charge region of a uniformly doped pn junction .

Matlab Code:
xn=0.86e-4;
es=(11.7)*(8.85e-10);
e1=1.6e-19;
nd=10e+15;
na=10e+15;

x1=-xp:1e-10:0;
q1=(x1+xp);
a=(e1*na)/(2*es);
y1=(a.*q1.^2);

x2=0:1e-10:xn;
q2=(e1*na)/(es);
y2=q2.*(xn*x2-(x2.^2)/2)+a.*xp^2;

plot(x1,y1,x2,y2)
Output:

You might also like