program_8_5.m
来自「介绍matlab编程的经典著作,包括与VC++进行联合编程,还包括一些经典的算法」· M 代码 · 共 17 行
M
17 行
% Program 8_5
% Realization of Gray-Markel Cascaded Lattice Structure
%
% 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 = input('Numerator coefficient vector = ');
den = input('Denominator coefficient vector = ');
num = num/den(1);
den = den/den(1);
[k,alpha] = tf2latc(num,den);
disp('Lattice parameters are');disp(k');
disp('Feedforward multipliers are');disp(fliplr(alpha'));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?