📄 c6ex5.m
字号:
% Solution of Example 6-5 for currents using MATLAB% symbolic toolbox%syms t sZ = sym('[2+s, -1, 0; -1, 1+2/s,-2/s; 0, -2/s, 2+2/s]'); % Define impedance matrixvs = sym('cos(2*t)')Vs = laplace(vs)vc = sym('2*cos(2*t)')Vc = laplace(vc)E = sym('[s/(s^2+4); 0; 2*s/(s^2+4)]'); % Define LT independent source matrixVi = sym('[2; 0; 0]'); % Define LT initial condition matrixE_plus_Vi = E+Vi % Form LT of source plus IC matrixZ_inv = inv(Z); % Obtain inverse of impedance matrixI = Z_inv*E_plus_Vi % Obtain LT current matrix and print
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -