Please help me with this program as I am not getting the output?

조회 수: 1 (최근 30일)
ARTI
ARTI 2013년 12월 12일
댓글: Walter Roberson 2013년 12월 20일
if true
lambda=25*10^-5;
hfin=1*10^-6;
W=2*hfin*+tsi
u=1;
Cox=1*10^-6;
ld=1;
Ec=1;
Vds=1;
Nde = 2.7*10^19;
Nsdp = 1*10^20;
lateralstraggle = 2*10^-9;
seff=(log(Nde/Nsdp)*(-2*(lateralstraggle)^2)^1/2)
Lg=70*10^-9;
Leff=Lg-(2*seff);
Vth=1.1*10^-6;
DIBL=1;
vth=Vth-DIBL;
A=3;
Vdssat=2;
F=1-log(1+exp(A*(1-Vds/Vdssat))/log(1+exp(A)))
Idslin=(2*W*u*Cox/(Leff-ld+(Vds/Ec))+lambda*2*W*Cox/(Leff-ld)^2)*((vgs-vth)*Vds-0.5*Vds^2)
Idsat=(2*W*u*Cox/(Leff-ld+(F*Vds/Ec))+lambda*2*W*Cox/(Leff-ld)^2)*((vgs-vth)*F*Vds-0.5*F*Vds^2)
plot(Idslin,Vds)
end

답변 (1개)

Walter Roberson
Walter Roberson 2013년 12월 12일
This is very nearly the same code as you have presented before, and it has the same answer as before: it does produce a plot, and that plot contains exactly one point. Look at your code again: your code contains no loops and contains no vectors, so every variable in it is going to be scalar.
I would ask the same questions here as I have asked you before with regards to your very similar code, which you have not answered. See http://www.mathworks.co.uk/matlabcentral/answers/109098-may-i-know-what-is-wrong-with-the-program-as-it-is-not-showing-any-output#comment_184744
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 12월 13일
Your current code has lateralstraggle=2*10^-9 so should we assume that the unit is meters, and thus that 5 nm would correspond to 5*10^(-9) ? What increment are you hoping for?
Walter Roberson
Walter Roberson 2013년 12월 20일
Is there a question in that? Your satcurrent appears to be a scalar, but your vds is a vector, so you are unlikely to get an interesting plot.
You are redefining vds from 144 to vds=0:0.2:1 which is going to be confusing for the reader.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by