フィルターのクリア

Grpdelay function with plotting for a transfer function

3 ビュー (過去 30 日間)
Jackson
Jackson 2020 年 10 月 4 日
コメント済み: Jackson 2020 年 10 月 8 日
I am trying to find the grpdelay of a transfer function and plot it but am not sure how to use the function in MATLAB.
The transfer function I have is
H = tf([0.25 -0.1045 1],[1 -0.1045 0.25],0.1;
and this is what im trying to do.

回答 (1 件)

Harsh Parikh
Harsh Parikh 2020 年 10 月 7 日
Hi,
'tf()' function has the following prototype: (https://www.mathworks.com/help/control/ref/tf.html)
sys_obj = tf(<Numerator_coefficients>,<Denominator_Coefficients>,Sample_time)
Thus, your first vector ([0.25 -0.1045 1]) is a vector of coefficients for the Numerator part and the second vector ([1 -0.1045 0.25]) will be a vector of coefficients for the denominator part.
'grpdelay()' function has the following prototype: (https://www.mathworks.com/help/signal/ref/grpdelay.html)
[Group_delay, angular_freq] = grpdelay(<Numerator_coefficients>, <Denominator_Coefficients>)
After having all this information, you can use the 'grpdelay()' as follows:
[gd,w] = grpdelay(First_vector, second_vector)
I got the following graph for the given input:
  1 件のコメント
Jackson
Jackson 2020 年 10 月 8 日
Ok I see now thank you

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

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by