G和C都是3*3矩阵,怎么用matlab写A=G+jwC,w已知freq=0:1000:10000;omega=2*pi.*freq;A=G+1i.*omega.*C;X=A\b;%inv(A)*bvout=X(2,1);plot(freq,abs(vout));Error using .* Matrix dimensions must agree.应该怎么改
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/30 03:50:14
G和C都是3*3矩阵,怎么用matlab写A=G+jwC,w已知freq=0:1000:10000;omega=2*pi.*freq;A=G+1i.*omega.*C;X=A\b;%inv(A)*bvout=X(2,1);plot(freq,abs(vout));Error using .* Matrix dimensions must agree.应该怎么改
G和C都是3*3矩阵,怎么用matlab写A=G+jwC,w已知
freq=0:1000:10000;
omega=2*pi.*freq;
A=G+1i.*omega.*C;
X=A\b;%inv(A)*b
vout=X(2,1);
plot(freq,abs(vout));
Error using .*
Matrix dimensions must agree.
应该怎么改
G和C都是3*3矩阵,怎么用matlab写A=G+jwC,w已知freq=0:1000:10000;omega=2*pi.*freq;A=G+1i.*omega.*C;X=A\b;%inv(A)*bvout=X(2,1);plot(freq,abs(vout));Error using .* Matrix dimensions must agree.应该怎么改
A=G+1i.*omega.*C;
这个1i是什么?