www.gusucode.com > mpc 案例源码 matlab代码程序 > mpc/RetrieveOutputDisturbanceChannelsWithDefaultIntegratedExample.m

    %% Retrieve Output Disturbance Model Channels with Default Integrated White Noise
%%
% Define a plant model with no direct feedthrough, and create an MPC
% controller for that plant.

% Copyright 2015 The MathWorks, Inc.

plant = rss(3,3,3);
plant.d = 0;
MPCobj = mpc(plant,0.1);

%%
% Extract the default output disturbance model. 
[outdist,channels] = getoutdist(MPCobj);

%%
% Check which channels have default integrated white noise disturbances.
channels
%%
% Integrators have been added to all three output channels.