How to obtain the output response of 2x2 MIMO system with decoupler and PI controller

3 views (last 30 days)
g11=12.8*exp(-1*s)/(16.7*s+1); g22=(-19.4)*exp(-3*s)/(14.4*s+1); g12=(-18.9)*exp(-3*s)/(21*s+1); g21=6.6*exp(-7*s)/(10.9*s+1);
G = [g11 g12 ; g21 g22]; % G= transfer function of 2*2 MIMO system
d21=(exp(-4*s)*(4.896*s+0.34))/(10.9*s+1); d12=(exp(-2*s)*(24.54*s+1.47))/(21*s+1);
D = [1 d12 ; d21 1]; % D= decoupler
c1=(1.1*s+0.04)/s; c2=(-0.2*s-0.0104)/s; % c1 and c2 are the two controllers
G.InputName = {'u1','u2'}; G.OutputName = {'y'};
D.y = {'u1','u2'}; D.u = {'u11','u22'};
c1.u ='e(1)';
c1.y ='u11';
c2.u ='e(2)';
c2.y ='u22';
Sum = sumblk('e = r - y',2);
CLry = connect(G,D,c1,c2,Sum,'r','y');
y= step (CLry,t);
Two outputs should be obtained. But I can't obtain y1 and y2.
Please help

Answers (0)

Categories

Find more on Robust Control Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!