% Script to read gmbyId.txt and merge the readings to just 1 graph % 1st column is taken as Current, 2nd column as Id/(W/L), 3rd column as % gm/Id % Remove the 1st 2 lines as the header lines arr = textread('gmByIdCurves.csv','',-1,'headerlines',2,'headercolumns',0); figure(1); for count = 2:3:size(arr,2) semilogx(arr([1:size(arr,1)],count),arr([1:size(arr,1)],count+1),'r'); hold on; end grid on; xlabel('Id/(W/L)') ylabel('gm/Id') title('gm/Id vs Id/(W/L) for 2V NMOS TSMC 0.18\mum RF; 180nm \leq L \leq 10\mum, 2\mum \leq W \leq 20\mum, 0.3V \leq Vgd \leq -0.9V')