My matlab file
Hi:
I attach my matlab file which
implent the equation from
the book.
You will find a negative capacitor
value by using the equation.
Any idea?
Regards
Div
________
mil=2.54e-5;
% s is distance of the gap, W is the width of the mline
s=50*mil;
W=100*mil;
h=1*mil;
Er=4;
if (s/W <0.1 | s/W>1)
fprintf('There is sth. wrong!\n');
break;
else
mo=W/h*(0.619*log(W/h)-0.3853);
ko=4.26-1.453*log(W/h);
end
if (0.1<= s/W & s/W<=0.3)
me=0.8675;
ke=2.043*power(W/h,0.12);
else
me=1.565/power(W/h,0.16)-1;
ke=1.97-0.03/(W/h);
end
%Co=power(Er/9.6,0.8)*power(s/W,mo)*exp(ko)*W;
%Ce=12*power(Er/9.6,0.9)*power(s/W,me)*exp(ke)*W;
Co=1.1*power(Er/9.6,0.8)*power(s/W,mo)*exp(ko)*W;
Ce=1.167*power(Er/9.6,0.9)*power(s/W,me)*exp(ke)*W;
Cp=0.5*Ce
Cg=0.5*Co-0.25*Ce