www.gusucode.com > ident 案例代码 matlab源码程序 > ident/ReturnNonlinearityDetectionTestQuantitiesExample.m
%% Return Nonlinearity Detection Test Quantities % Load the estimation data. % Copyright 2015 The MathWorks, Inc. load(fullfile(matlabroot, 'toolbox', 'ident', 'iddemos', 'data','narendralidata')) %% % Construct an |iddata| object using the estimation data. z = iddata(u,y1,1); %% % Specify the model orders and delays. orders = [1 1 2]; %% % Detect nonlinearities in the data, and determine the test quantities behind % the evaluation. [NLHyp,NLValue,NLRegs,NoiseSigma,DetectRatio] = isnlarx(z,orders);