Please help me with this program as I am not getting the output?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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
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
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 Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!