www.gusucode.com > ident 案例代码 matlab源码程序 > ident/ViewConfidenceRegionforIdentifiedModelExample.m

    %% View Confidence Region for Identified Model  
% Show the confidence bounds on the bode plot of an identified ARX model.   

% Copyright 2015 The MathWorks, Inc.


%% 
% Obtain identified model and plot its bode response. 
load iddata1 z1
sys = arx(z1, [2 2 1]);
h = bodeplot(sys); 

%%
% |z1| is an |iddata| object that contains time domain system response
% data. |sys| is an |idpoly| model containing the identified polynomial
% model. |h| is the plot handle for the bode response plot of |sys|.

%% 
% Show the confidence bounds for |sys|. 
showConfidence(h);   

%%
% This plot depicts the confidence region for 1 standard deviation.