![](/img/trans.png)
[英]MATLAB - Find Frequency of Transfer Function Corresponding to a Magnitude
[英]How to find the magnitude and phase of a transfer function at a specific point in MATLAB
例如在點 2+i 處 G(s)=1/(s+1) 的幅度和相位是否有 Matlab 中的任何函數來計算
當您想要獲得傳遞函數的幅度和相位時,即傳遞函數的頻率響應。 一旦這樣說,評估是頻率(omega)而不是實部+虛部。
如果要獲得某個頻率下傳遞函數的幅度和相位,可以使用 bode 命令( https://www.mathworks.com/help/control/ref/lti.bode.html )
所以這個例子將是:
% Creating the complex variable "s"
s = tf([1 0],1);
% Creating the transfer function
G = 1/(s+1);
% Get the response at "omega" frequency
freq_radpersec = 5;
% Get the magnitude and phase
[mag,phase] = bode(G,freq_radpersec);
希望這有助於獲得幅度和相位。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.