Simulink Control Design™ - MathWorks

(Tuis.) #1

io = [linio('scdairframeTRIM/delta',1,'in');... % delta
linio('scdairframeTRIM/Airframe Model',1,'out');... % alpha
linio('scdairframeTRIM/Airframe Model',2,'out');... % V
linio('scdairframeTRIM/Airframe Model',3,'out');... % q
linio('scdairframeTRIM/Airframe Model',4,'out');... % az
linio('scdairframeTRIM/Airframe Model',5,'out')]; % gamma


Batch-linearize the model at the trim conditions. Store linearization offset information in
the info structure.


[G,~,info] = linearize('scdairframeTRIM',op,io, ...
linearizeOptions('StoreOffsets',true));
G = reshape(G,[nA nV]);
G.u = 'delta';
G.y = {'alpha','V','q','az','gamma'};
G.SamplingGrid = struct('alpha',alpha,'V',V);


G is a 15-by-12 array of linearized plant models at the 180 flight conditions. The
plant dynamics vary substantially across the flight envelope, including scheduling
locations where the local dynamics are unstable.


bodemag(G(3:5,:,:,:))
title('Variations in airframe dynamics')


Approximating Nonlinear Behavior Using an Array of LTI Systems
Free download pdf