matlab对电路电流求解的问题L=0.01;C=0.01;R1=2;R2=2;R3=2.5;R4=2;w=314;XL=w*L;XC=1/(w*C);US=5;IS=cos(pi/6)+1i*sin(pi/6);I4=IS;((4.5-j*XC)*I1+j*XC*I2-2.5*I3)=5;((4.5+jXL)*I3-2.5*I1-2*I2)=jXL*I4((4-jXC)*I2+jXC*I1-2*I3)=0d=[I1,I2,I3,I4];a=[4.5-jX
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 04:23:44
matlab对电路电流求解的问题L=0.01;C=0.01;R1=2;R2=2;R3=2.5;R4=2;w=314;XL=w*L;XC=1/(w*C);US=5;IS=cos(pi/6)+1i*sin(pi/6);I4=IS;((4.5-j*XC)*I1+j*XC*I2-2.5*I3)=5;((4.5+jXL)*I3-2.5*I1-2*I2)=jXL*I4((4-jXC)*I2+jXC*I1-2*I3)=0d=[I1,I2,I3,I4];a=[4.5-jX
matlab对电路电流求解的问题
L=0.01;C=0.01;R1=2;R2=2;R3=2.5;R4=2;
w=314;XL=w*L;XC=1/(w*C);US=5;IS=cos(pi/6)+1i*sin(pi/6);I4=IS;
((4.5-j*XC)*I1+j*XC*I2-2.5*I3)=5;
((4.5+jXL)*I3-2.5*I1-2*I2)=jXL*I4
((4-jXC)*I2+jXC*I1-2*I3)=0
d=[I1,I2,I3,I4];
a=[4.5-jXC,jXC,-2.5;4.5+jXL,-2.5,-2;4-jXC,jXC,-2];
b=[5;jXL*I4;0];
d=inv(a)*b;
第三行哪错了
补充:如图1所示,已知Us=7.07sin(314t)V,is=1.414sin(314t+30°)A,R1=R2=R4=2Ω,R3=2.5Ω,C=0.01F,L=0.01H.求各支路电流并作向量图和波形图.这是原问题,第三行总是提示等号左边不是有效的赋值
matlab对电路电流求解的问题L=0.01;C=0.01;R1=2;R2=2;R3=2.5;R4=2;w=314;XL=w*L;XC=1/(w*C);US=5;IS=cos(pi/6)+1i*sin(pi/6);I4=IS;((4.5-j*XC)*I1+j*XC*I2-2.5*I3)=5;((4.5+jXL)*I3-2.5*I1-2*I2)=jXL*I4((4-jXC)*I2+jXC*I1-2*I3)=0d=[I1,I2,I3,I4];a=[4.5-jX
I1,I2,I3要通过解方程求得,可如下改:
L=0.01;C=0.01;
R1=2;R2=2;R3=2.5;R4=2;
w=314;
XL=w*L;XC=1/(w*C);
US=5;
IS=cos(pi/6)+1i*sin(pi/6);
I4=IS;
[I1,I2,I3]=solve('((4.5-j*XC)*I1+j*XC*I2-2.5*I3)=5','((4.5+j*XL)*I3-2.5*I1-2*I2)=j*XL*I4','((4-j*XC)*I2+j*XC*I1-2*I3)=0','I1','I2','I3');
d1=eval([I1,I2,I3,I4])
a=[4.5-1i*XC,1i*XC,-2.5;4.5+1i*XL,-2.5,-2;4-1i*XC,1i*XC,-2];
b=[5;1i*XL*I4;0];
d=a\b