program_3_8.m
来自「这是国外一本经典教材附带的程序」· M 代码 · 共 16 行
M
16 行
% Program 3_8
% Determination of the Rational z-Transform
% from its Poles and Zeros
%
format long
zr =3D input('Type in the zeros as a row vector =3D ');
pr =3D input('Type in the poles as a row vector =3D ');
% Transpose zero and pole row vectors
z =3D zr'; p =3D pr';
k =3D input('Type in the gain constant =3D ');
[num, den] =3D zp2tf(z, p, k);
disp('Numerator polynomial coefficients'); disp(num);
disp('Denominator polynomial coefficients'); =
disp(den);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?