2012-05-22 42 views
1

我有分子和連續時間傳遞函數的分母。我想單獨獲得等效離散時間傳遞函數的分子和分母。是否存在`tf()`的反函數?

我的代碼如下:

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 

我該怎麼辦呢?

回答

2

您可以使用tfdata獲得分子和分母系數,是這樣的:

[Bd, Ad] = tfdata(Hd); 

通知返回的訂單價值BdAd