Jump to content

Circuit Theory/Parallel Resistance/m-file

From Wikibooks, open books for an open world
R=100; C=10^(-6); L = 2*10^(-3); 

s=i*22400;
Z = 1/(1/R + 1/(s*L) +s*C)
abs(Z),angle(Z),angle(Z)*180/pi

s = -5000 + i*22400;
Z = 1/(1/R + 1/(s*L) +s*C)
abs(Z),angle(Z),angle(Z)*180/pi