c6ex5.m

来自「数字信号处理Matlab实现?中藕糯鞰atlab实现数字信号处理Matlab」· M 代码 · 共 15 行

M
15
字号
%	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 + =
减小字号Ctrl + -
显示快捷键?