how to calculate absolute value for a tf-object for a certain frequency

조회 수: 10 (최근 30일)
Anders Hultgren
Anders Hultgren 2019년 5월 23일
댓글: Star Strider 2019년 5월 23일
how to calculate absolute value for a tf-object for a certain frequency.
i.e. I have a transfer function object, tf. I would like to calculate the absolute value and the angle of the transfer function for a certain frequency.
Anders

답변 (1개)

Star Strider
Star Strider 2019년 5월 23일
Thje evalfr (link) function is likely what you want.
It requires a complex radian frequency for the frequency argument, so for example 100 Hz would be 2*pi*1j*100. You can get the magnitude of the complex output with the abs function, and the radian phase angle with the angle function.
  댓글 수: 2
Anders Hultgren
Anders Hultgren 2019년 5월 23일
Thank you Star Strider,
Your suggestion solved my problem.
Star Strider
Star Strider 2019년 5월 23일
My pleasure.
It is appropriate to Accept Answers that solve problems!
That tells others that the solution was successful.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by