📄 e420.asv
字号:
% Script file: E420.m
% Purpose:
% This program is to calculate the iD through a semiconductor by the vD
% It asks us to create the plot between iD and vD,then execute it in
% different tempature 75,100,125F,the vD is from -1.0V:0.1:+0.6V
% Record of Revision
% Date Programmer Description of change
% ============ =================== ========================
% 12/06/08 ZMW Original code
% Define variables:
% iD -----the votage across the diode,in volts
% vD -------the current flow through the diode ,in amps
% T -------Temperature
% Constants
Io=2.0;
q=1.602e-19;
k=1.38e-23;
% ii=1;
% jj=1;
% kk=1;
% T1=75;
% T2=100;
% T3=125;
% for vD=-1.0:0.1:0.6
% iD1(ii)=Io*(exp(q*vD./(k*T1))-1);
% iD2(jj)=Io*(exp(q*vD./(k*T2))-1);
% iD3(kk)=Io*(exp(q*vD./(k*T3))-1);
% ii=ii+1;
% jj=jj+1;
% kk=kk+1;
% end
%
% vD=-1.0:0.1:0.6;
% hold on
% plot(vD,iD1,'k-');
% plot(vD,iD2,'b-');
% plot(vD,iD3,'r-');
% hold off
ii=1;
jj=1;
for T=75:25:125
for vD=-1.0:0.1:0.6
iD(ii,jj)=Io*(exp(q*vD./(k*T))-1);
jj=jj+1;
end
ii=ii+1;
jj=1;
end
vD=-1:0.1:0.6;
plot(vD,iD(1,))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -