[英]How to get transfer function (approximation) of unknown system in matlab/simulink?
[英]Analysis of the stability of the system characterized by the transfer function - MATLAB
我在“系統論”領域也有一個問題要解決。 我解決了數學部分,但現在我必須找到一種分析系統穩定性的虛擬方法,該方法以傳輸function為特征。因此,我選擇了matlab。
我需要以圖形方式顯示奈奎斯特圖以及傳輸 function 的極點和零點。
轉function:
奈奎斯特圖的代碼如下:
num=[1 1]
den=[1 1 4 1 2]
G=tf(num,den)
plot(nyquist(G))
grid on
表示轉賬function的極點和零點的代碼如下:
num=[1 1]
den=[1 1 4 1 2]
G=tf(num,den)
plot(pzmap(G))
grid on
我怎么能在同一個圖表上看到兩個函數或一個在另一個下面?
先感謝您
好吧,現在我想我知道你想要什么了。 作為反饋,您下次能否在說明中加入 nyquist nyquist()
和pzmap
創建自己的圖形。 這就是為什么不清楚問題是什么。
無論如何,從 nyquist( nyquist()
和pzmap()
function 中,您可以獲得必要的信息,以便 plot 在它們各自的文檔( nyquist , pzmap )中所述的不同圖表中。 對於w
,我選擇了一個矢量,以便整個奈奎斯特形狀足夠可見。
num=[1 1];
den=[1 1 4 1 2];
G=tf(num,den);
w = linspace(-2*pi,2*pi,1e4);
[re,im] = nyquist(G,w);
[p,z] =pzmap(G);
figure();
plot(squeeze(re),squeeze(im));
hold on;
plot(real(p),imag(p),'*',real(z),imag(z),'o');
grid on
結果圖:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.