clear all% Example
R1=500; R2=250; C=2e-6; L=0.25; W=1000; phi=0;Vs=20*exp(j*phi*pi/180);XC=(1/(1*j*W*C));XL=(1*j*W*L);% Applying Mesh Analysis
eqn1='I1*(R1+XC)-I2*(XC)=Vs';eqn2='-I1*(XC)+I2*(R2+XL+XC)=0';[i1 i2]=solve (eqn1,eqn2,'I1','I2')
Matlab’s answers:
i1 =(Vs*(R2 + XC + XL))/(R1*R2 + R1*XC + R2*XC + R1*XL + XC*XL)i2 =(Vs*XC)/(R1*R2 + R1*XC + R2*XC + R1*XL + XC*XL)
Note: I need to know a command that I can use to obtain a numerical answer instead an algebraic.
Best Answer