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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (1)

Walter Roberson
Walter Roberson il 12 Dic 2013
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 Commenti
Walter Roberson
Walter Roberson il 13 Dic 2013
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 il 20 Dic 2013
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.

Accedi per commentare.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by