Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. %% Define Constants
  2. Vt=0.5;
  3. un=350; %cm^2/Vs
  4. W=300; %nm
  5. L=150; %nm
  6. ti=50e-7; %cm
  7. Vds=0:0.01:3;
  8. %% Calculate Ci
  9. ei=3.9;
  10. e0=8.854e-14; %F/cm
  11. Ci=ei*e0/ti; %F/cm^2
  12. %% Vgs=0V
  13. Vgs=1;
  14. Vds_sat = Vgs-Vt;
  15.  
  16. p(x)=piecewise(x < Vds_sat,un*Ci*W/L*((Vgs-Vt).*Vds - 0.5.*(Vds.^2)), 0.5*un*Ci*W/L*(Vgs-Vt)^2);
  17.  
  18. plot(Vds, p(Vds))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement