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

2 次查看(过去 30 天)
clear all;
W=360*10^-9;
Vth=1;
lambda=25*10^-5;
un=100;
Cox=1*10^-6;
Leff=180*10^-9;
ld=0.1;
vds=0:0.5:10;
Ec=1;
vgs=input('ENTER THE Vgs in volts');
m=length(vds)
for i=1:m
if vgs < Vth
current(1,i)=0;
elseif vds(i) >= (vgs - Vth)
current(1,i)=(2*W*un*Cox/Leff-ld+(vds(i)/Ec)) +(lambda*2*W*Cox/(Leff-ld)^2)*((vgs-Vth)*vds(i)-0.5*vds(i)^2);
end
end
plot(vds,current(1,:),'b')
xlabel('Vds, V')
ylabel('Drain Current,A')
title('I-V Characteristics of a MOSFET')

回答(1 个)

Matt J
Matt J 2014-1-3
编辑:Matt J 2014-1-3
Sample the curve at more points.
  3 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Semiconductors and Converters 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by