program_6_4.m
来自「这是国外一本经典教材附带的程序」· M 代码 · 共 20 行
M
20 行
% Program 6_4
% Gray-Markel Cascaded Lattice Structure
% Development
% den is the denominator coefficient vector
% num is the numerator coefficient vector
% k is the lattice parameter vector
% alpha is the vector of feedforward multipliers
%
format long
% Read in the transfer function coefficients
num =3D input('Numerator coefficient vector =3D ');
den =3D input('Denominator coefficient vector =3D ');
num =3D num/den(1);
den =3D den/den(1);
[k,alpha] =3D tf2latc(num,den);
disp('Lattice parameters are');disp(k');
disp('Feedforward multipliers =
are');disp(fliplr(alpha'));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?