Will you please rectify the errors in the program?

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 日

0 投票

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 日

0 投票

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 年 11 月 30 日
Will you pl find the error
Walter Roberson
Walter Roberson 2013 年 11 月 30 日
Difficult to do without your code.
Image Analyst
Image Analyst 2013 年 11 月 30 日
If I had to guess, I'd say take a look at line 42 - it looks very odd.
Walter Roberson
Walter Roberson 2013 年 11 月 30 日
An even odd number would certainly be a very odd odd number.
ARTI
ARTI 2013 年 12 月 8 日
編集済み: ARTI 2013 年 12 月 8 日
(line 42) please make the statement bit clear.I am attaching the base paper for which i wrote the program. do reply as i am having ma review on 10.
Image Analyst
Image Analyst 2013 年 12 月 8 日
Even ignoring the FAQ, I'm stunned into silence. Why do you think that is?
ARTI
ARTI 2013 年 12 月 8 日
sir i really dont know much about matlab. plz let me know the error in pgm??
Image Analyst
Image Analyst 2013 年 12 月 8 日
編集済み: Image Analyst 2013 年 12 月 8 日
What program, or pgm as you call it? I don't see any program. Please look at exactly what you have posted so you know what I have to work with.
ARTI
ARTI 2013 年 12 月 9 日
編集済み: ARTI 2013 年 12 月 9 日
if true
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;
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')
end
sir i have attached the program.
Walter Roberson
Walter Roberson 2013 年 12 月 9 日
There is no attachment...
ARTI
ARTI 2013 年 12 月 9 日
Sorry sir. Here i have attached again
Walter Roberson
Walter Roberson 2013 年 12 月 9 日
The attachment did not make it again. Is it the same as in your other question?
ARTI
ARTI 2013 年 12 月 9 日
yes sir
if true
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;
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')
end
Walter Roberson
Walter Roberson 2013 年 12 月 9 日
If this code is the same as in your other question, then how does this question differ from your other question ?
ARTI
ARTI 2013 年 12 月 10 日
Am asking the same question that what is wrong with the program as i am not getting the graph???? If someone can please guide me i would be grateful.
Walter Roberson
Walter Roberson 2013 年 12 月 10 日
You do get a graph. I have run the program myself. It is a graph with a single point. Which is what you should expect as you have no vectors and no loops in your code.
Image Analyst
Image Analyst 2013 年 12 月 10 日
ARTI, we just run your code. It's not worth our time to try to figure out what's going on. It looks like a dictionary exploded and the confetti rained down upon my computer. No comments or descriptive variable names. I don't know what all those variables are or what you intend to do. It just looks like an alphabet soup to me. So all I do is run it and see that a graph does indeed get created.
ARTI
ARTI 2013 年 12 月 11 日
編集済み: Walter Roberson 2013 年 12 月 11 日
Sorry sir,I have given now the variables
Nsdp= peak of gaussian profile;
Nde=degenerated doping value;
seff= effective source;
vt=thermal voltage;
vbi=built in potential;
ni=intrinsic concentration;
Eg=bandgap;
lambda=natural length;
Sd=spin degeneracy factor;
Na=ionised acceptor concentration;
Nsdx= ionised donor concentration;
Ef= fermi level;
Ed= donor level of Nsdx;
Vth= threshold voltage;
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.

サインインしてコメントする。

カテゴリ

質問済み:

2013 年 11 月 29 日

コメント済み:

2014 年 1 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by