?? uncreg.m
字號:
function [gf,cn]=uncreg(w)
%gf=uncreg(w) produces an uncertainty region of plant (7.17)
% at frequency w. The region gf is a complex vector
% and can be plotted by: plot(real(gf),imag(gf)).
%
n=11;
p=linspace(2,3,n);
tau=2;theta=2;
gf=[];
for k=2:3,
gf=[gf;k*exp(-j*w*theta)/(j*w*tau+1)];
end
for l=2:n,
theta=p(l);
gf=[gf;k*exp(-j*w*theta)/(j*w*tau+1)];
end
for l=2:n,
tau=p(l);
gf=[gf;k*exp(-j*w*theta)/(j*w*tau+1)];
end
k=2;
gf=[gf;k*exp(-j*w*theta)/(j*w*tau+1)];
for l=n-1:-1:1,
theta=p(l);
gf=[gf;k*exp(-j*w*theta)/(j*w*tau+1)];
end
for l=n-1:-1:1,
tau=p(l);
gf=[gf;k*exp(-j*w*theta)/(j*w*tau+1)];
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -