mat3.m

来自「mos transistor, basic simulation」· M 代码 · 共 19 行

M
19
字号
hold on
vgs=0.001:.001:1.8;
vds=1.8;
for vbs=0:.010:.5
    vt=.4+.45*(sqrt(.9-vbs)-sqrt(.9));
    for i=1:1800
        if vgs(i)<vt
        id(i)=vgs(i).*0;
        end
        if vds<vgs(i)-vt && vgs(i)>=vt
        id(i)=.774.*((vgs(i)-vt).*vds-vds.^2./2).*(1+.1.*vds);
        end
        if vds>=vgs(i)-vt && vgs(i)>=vt
        id(i)=.774./2.*((vgs(i)-vt)^2).*(1+.1.*vds);
        end
    end
    plot(vgs,id)
    end
    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?