필터 지우기
필터 지우기

How to plot magnitude (not in db) of the transfer function for the frequencies?

조회 수: 38 (최근 30일)
Waqar Ahmed
Waqar Ahmed 2020년 3월 1일
편집: Joel 2023년 3월 29일
Normally we use bode plot for the magnitude of transfer function tf. But, how to get absolute magnitude in matlab.

답변 (1개)

Joel
Joel 2023년 3월 29일
편집: Joel 2023년 3월 29일
Hi,
You can use 'bode' function itself to get the absolute magnitude in MATLAB.
[mag,phase,wout] = bode(sys); % where 'sys' is the transfer function specified using 'tf'
mag is the absolute magnitude (not in dB) and wout is a set of frequencies. You can now plot mag against wout by either using the 'plot' function if you want a linear X axis or the 'semilogx' function if you want a logarithmic X axis.
Refer to the following documentation for more information:
Hope this helps!

카테고리

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