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

我的代码如下:

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

我该怎么做呢?

有帮助吗?

解决方案

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

[Bd, Ad] = tfdata(Hd);

注意返回值的顺序 BdAd.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top