how to write the command for numerator and denominator polynomial coefficients

10 ビュー (過去 30 日間)
I want to find the transfer function. how to write the command for numerator and denominator polynomial coefficients: num=[1 0 .......0 n1];?? den=[1 0......0 n2];?? for a large n1=500,n2=890.
  5 件のコメント
Walter Roberson
Walter Roberson 2018 年 5 月 23 日
num = [1, zeros(1,n1)];
den = [1, zeros(1,n2)];
tf(num, den)
phoenix
phoenix 2018 年 5 月 23 日
Thanks for the code.how to plot the magnitude of the following transfer function(attached)

サインインしてコメントする。

採用された回答

Sammit Jain
Sammit Jain 2018 年 5 月 23 日
Agree with Walter on the method using tf.
So this is basically what you can do:
% Initialize n1 and n2
n1 = 500;
n2 = 890;
% Initialize num and den as a vector of zeros
num = [1, zeros(1,n1-1)];
den = [1, zeros(1,n2-1)];
% Give values to num and den
% Your code here
% Use the num and den values to calculate the transfer function
tf(num,den)
  2 件のコメント
phoenix
phoenix 2018 年 5 月 23 日
how to plot the magnitude of the following transfer function(attached)
Walter Roberson
Walter Roberson 2018 年 5 月 23 日
You cannot do that as a proper transfer function because of the sqrt() .
Under a couple of assumptions you can do a change of variables to get 25*z^9/(z^44-15*z^12-22) . You can use standard pole/zero plotting on that -- but only for z > 0. Under that condition there is one pole at about 1.10127776334121 (the other poles are at negative or complex z, and for those the simplifications to get that polynomial are not valid.)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by