Back to Browse

gm over id (gm/id) method part 5 plotting in Matlab 2

12.9K views
Dec 18, 2016
24:56

this tutorial illustrates how to plot gm/id graphs in Matlab - part 2 ~~~~~~~~~~~~~~~~~~~~~ matlab code ~~~~~~~~~~~~~~~~~~~~~~ addpath('D:\gm_id_data\param'); % location of the files load nmos.dat; w=5e-6; vgs = [nmos(:,1) nmos(:,1) nmos(:,1) nmos(:,1) nmos(:,1)]; id = [nmos(:,2) nmos(:,7) nmos(:,12) nmos(:,17) nmos(:,22)]; gm = [nmos(:,3) nmos(:,8) nmos(:,13) nmos(:,18) nmos(:,23)]; gds = [nmos(:,4) nmos(:,9) nmos(:,14) nmos(:,19) nmos(:,24)]; cgg = [nmos(:,5) nmos(:,10) nmos(:,15) nmos(:,20) nmos(:,25)]; vth = [nmos(:,6) nmos(:,11) nmos(:,16) nmos(:,21) nmos(:,26)]; gm_id = gm./id; vov = vgs-vth; gm_gds = gm./gds; fT = gm./(2*pi*cgg); id_w = id./w; fT_gmid = fT.*gm_id; subplot(2,2,1); plot (vov, gm_id); xlabel('vov(v)'); ylabel('gm/id(1/v)'); legend ('L1','L2', 'L3', 'L4', 'L5'); subplot(2,2,2); plot (gm_id, fT); xlabel('gm/id(1/v)'); ylabel('fT'); legend ('L1','L2', 'L3', 'L4', 'L5'); subplot(2,2,3); plot (gm_id, gm_gds); xlabel('gm/id(1/v)'); ylabel('gm/gds'); legend ('L1','L2', 'L3', 'L4', 'L5'); subplot(2,2,4); semilogy(gm_id, id_w); xlabel('gm/id(1/v)'); ylabel('id/w'); legend ('L1','L2', 'L3', 'L4', 'L5');

Download

0 formats

No download links available.

gm over id (gm/id) method part 5 plotting in Matlab 2 | NatokHD