1

我有连续时间传递函数的分子和分母。我想分别获得等效离散时间传递函数的分子和分母。

我的代码如下:

SAMPLING_PERIOD = 0.01;
% Hc(s) = Bc(s)/Ac(s) = 25 / (s^2 + 3s + 25);
Bc = [25];
Ac = [1, 3, 25];
Hc = tf(Bc, Ac);
Hd = c2d(Hc, SAMPLING_PERIOD);
[Bd, Ad] = inverse_tf(Hd);  % I need a function like this
% My aim is to obtain Ad and Bd; where,
%    Bd: Numerator of the corresponding discrete time system
%    Ad: Denominator of the corresponding discrete time system

我该怎么做呢?

4

1 回答 1

2

您可以使用tfdata获取分子和分母系数,如下所示:

[Bd, Ad] = tfdata(Hd);

注意返回值Bd和的顺序Ad

于 2012-05-22T16:30:13.927 回答