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

    %% Restrict Pole Locations in Sampled Uncertain Dynamics
% To see the effect of limiting the bandwidth of sampled models with
% |Wmax|, create two |ultidyn| objects.
%%

% Copyright 2015 The MathWorks, Inc.

A = ultidyn('A',[1 1]); 
B = ultidyn('B',[1 1]); 
%%
% Sample 10 instances of each, using a bandwidth limit of 1 rad/sec on |A|,
% and 20 rad/sec on |B|.
Npts = 10; 
As = usample(A,Npts,1); 
Bs = usample(B,Npts,20); 
%%
% Plot 10-second step responses, for the two sample sets.
step(As,'r',Bs,'b--',10)
%%
% The lower bandwith limit on the samples of |A| results in generally slower step
% responses for those samples.