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

    %% Estimate a Hammerstein-Wiener Model with Dead-zone Nonlinearity

%%
% Load estimation data.
load twotankdata;
z = iddata(y,u,0.2,'Name','Two tank system');
z1 = z(1:1000); 

%%
% Create a |deadzone| object, and specify the initial guess for the 
% zero-interval.
OutputNL = deadzone('ZeroInterval',[-0.1 0.1]);

%%
% Estimate model with no input nonlinearity.
m = nlhw(z1,[2 3 0],[],OutputNL);