Will you please rectify the errors in the program?

조회 수: 1 (최근 30일)
ARTI
ARTI 2013년 11월 29일
댓글: ARTI 2014년 1월 3일
I am not able to plot graphs between lateral straggle and threshold voltage and lateral straggle is varying between 2nm to 5 nm.

채택된 답변

sixwwwwww
sixwwwwww 2013년 12월 10일
Arti run this code and you will see the graph:
Nde = 2.7*10^19;
Nsdp = 1*10^20;
lateralstraggle = 2*10^-9;
seff = log(Nde/Nsdp)*(-2*(lateralstraggle)^2);
Lg=70*10^-9;
Leff=Lg-(2*seff);
Deff=seff+Leff;
k=1;
T=20;
q=1.6*10^-19;
Vt=(k*T)/q;
ni=1;
Eg=1.17*1.6*10^-19;
nieff=(ni^2*exp(Eg/k*T))^1/2;
Nde=2.7*10^19;
Na=56;
Vbi=Vt*log(Nde*Na/(nieff)^2);
epsilon=32;
epsilonox=4;
tsi=20*10^-9;
tox=1.2*10^-9;
lambda=(epsilon*tsi*tox)/(2*epsilonox);
vgs=2;
vfb=1;
q=1.6*10^-19;
Na=56;
Nsdp= 1*10^20;
x=4.6*(1.6*10^-19);
lateralstraggle=7:70; % Here many values for lateralstraggle to see multiple values on graph
Nsdx=Nsdp*exp((-x^2)./(2*lateralstraggle.^2));
Lg=4;
Sd=4;
Nde=2.7*10^19;
Ei0=0.054*(1.6*10^-19);
Ei=Ei0*(1-(Nsdx/Nde).^1/3);
Eg=34;
eg=24;
Egeff=Eg-eg;
Ed= Egeff-Ei;
Ef=8;
Eg=3;
ni=8;
nieff=(ni^2*exp(Eg/k*T))^1/2;
Nsdx=Nsdp*exp((-x^2)./(2*lateralstraggle.^2))+Nsdp*exp((-(Lg-x)/2*lateralstraggle.^2))/(1+Sd*exp((Ef-Ed)/k*T));
PI=(vgs-vfb)-lambda^2*q*(Na-Nsdx)/epsilon;
Vds=1.3607e+003;
c2=((Vbi-PI)*(1-(exp(-Deff/lambda))/(exp(-seff/lambda))+Vds))/(exp(Deff/lambda))-(exp(seff/lambda))/(exp(-seff/lambda))*(exp(-Deff/lambda));
c1=(Vbi-c2*exp(seff/lambda)/exp(-seff/lambda))*exp(-Deff/lambda);
si=c1*exp(-x/lambda)+c2*exp(x/lambda)+PI;
Ni=2;
fi=Vbi*log(Na/Ni);
Na=3;
Vth=vfb+(2*fi)-(c1*exp(-x/lambda))-(c2*exp(x/lambda))+(lambda^2)*q*(Na-Nsdx)/epsilon;
plot(lateralstraggle,Vth)
ylabel('Vth, V')
xlabel('lateralstraggle,nm')
Is it what you are looking for?
  댓글 수: 1
Image Analyst
Image Analyst 2013년 12월 11일
Make sure you're plotting an array, not a single value, if that's what you want. See this : http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2013년 11월 29일
I know you did not ask a question but I sense confusion so, this should help: http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab
  댓글 수: 21
ARTI
ARTI 2013년 12월 13일
Thank you very much sir
ARTI
ARTI 2014년 1월 3일
if i want to write the above program using vectors and loops then how can i proceed.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by