www.gusucode.com > mpc 案例源码 matlab代码程序 > mpc/RemoveOutputDisturbancesFromAllOutputChannelsExample.m
%% Remove Output Disturbances from All Output Channels %% % Define a plant model with no direct feedthrough and create an MPC % controller for that plant. plant = rss(3,3,3); plant.D = 0; MPCobj = mpc(plant,1); %% % Set the output disturbance model to zero for all three output channels. setoutdist(MPCobj,'model',tf(zeros(3,1))) %% % View the output disturbance model. getoutdist(MPCobj) %% % A static gain of |0| for all output channels indicates that the output % disturbances were removed.