Nevermind, I got it.
changed
index = (VGBi+0.05)./0.05;
to
index = int16((VGBi+0.05)./0.05);
I find it strange that I had to do that. Isn't "./" integer division? Shouldn't that output an integer?
Hello,
I am having a problem getting this MATLAB program to work:
function [ ] = PlotISD()
W = 10^-4;
L = 10^-5;
mu = 400;
Cox = 1.73*10^-6;
VFB = -0.75;
gamma = 0.235;
phiT = 0.0259;
IDS1 = 0:0.05:1.5;
IDS2 = IDS1;
for VGBi = 0:0.05:1.5
Ys0 = FindYs0(VGBi);
YsL = FindYsL(VGBi)...