www.gusucode.com > robust 案例源码程序 matlab代码 > robust/CreateAugmentedPlantForHInfinitySynthesisExample.m

    %% Create Augmented Plant for H-Infinity Synthesis
%  
s = zpk('s'); 
G = (s-1)/(s+1);
W1 = 0.1*(s+100)/(100*s+1); 
W2 = 0.1; 
W3 = [];
P = augw(G,W1,W2,W3);

[K,CL,GAM] = hinfsyn(P); 
[K2,CL2,GAM2] = h2syn(P);

L = G*K; 
S = inv(1+L); 
T = 1-S; 

sigma(S,'k',GAM/W1,'k-.',T,'r',GAM*G/W2,'r-.')
legend('S = 1/(1+L)','GAM/W1','T=L/(1+L)','GAM*G/W2','Location','Northwest')