필터 지우기
필터 지우기

How to calculate the norm of the transfer function in frequency domain?

조회 수: 11 (최근 30일)
To calculate the norm of the transfer function by substituting s=jω is troublesome, especially for some complicated transfer functions. Is there a way to calculate the norm directly? Thanks!
For example, transfer funciton:
Substituting s=jω,
then,
Thus we can plot the figure in frequency domain,
Matlab code:
omega=0:0.01:10;
G1_N=0.25e-2 .* omega .^ 2 + 0.1e1;
G1_D=((2 .* omega) - 0.15e0 .* (omega .^ 3)) .^ 2 + (0.1e1 + 0.5e-2 .* (omega .^ 4) - (omega .^ 2)) .^ 2;
G1=sqrt(G1_N ./ G1_D);
plot(omega,G1)

채택된 답변

William Rose
William Rose 2022년 3월 13일
You don't need to multiply the function by its complex conjugate to get a purely real denominator. Just divide complex numerator by the complex denominator, to get a new complex number, and take the abs() of it.
  댓글 수: 3
Cola
Cola 2022년 3월 14일
편집: Cola 2022년 3월 14일
@William Rose Thank you so much.
William Rose
William Rose 2022년 3월 14일
@Cola, you're welcome, and good luck with your work.

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

추가 답변 (1개)

Paul
Paul 2022년 3월 13일
Check out
doc tf
to learn how to create a transfer function (tf) object. Once you have G(s) defined as a tf object use bode() to compute its magnitude (and phase if desired)
doc bode
  댓글 수: 3
Paul
Paul 2022년 3월 13일
Actually, I was thinking of the Control System Toolbox. I'm not famiiar with the System ID toolbox.
If just wanting to use base Matlab, I'd probably use polyval().
Cola
Cola 2022년 3월 14일
편집: Cola 2022년 3월 14일
@Paul @William Rose Thanks to you. And we also can use the order 'freqs' to calculate the norm.

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

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by