Products & Services Solutions Academia Support User Community Company

Learn more about System Identification Toolbox   

Hammerstein-Wiener Model Plots

About Hammerstein-Wiener Plots

Hammerstein-Wiener model plot lets you explore the characteristics of the linear block and the static nonlinearities of the Hammerstein-Wiener model. For more information about estimating nonlinear Hammerstein-Wiener models, see Identifying Hammerstein-Wiener Models.

Examining a Hammerstein-Wiener plot can help you determine whether you chose an unnecessarily complicated nonlinearity for modeling your system. For example, if you chose a piece-wise-linear nonlinearity (which is very general), but the plot indicates saturation behavior, then you can estimate a new model using the simpler saturation nonlinearity instead.

For multivariable systems, you can use the Hammerstein-Wiener plot to determine whether to exclude nonlinearities for specific channels. If the nonlinearity for a specific input or output channel does not exhibit strong nonlinear behavior, you can estimate a new model after setting the nonlinearity at that channel to unit gain.

How to Create Hammerstein-Wiener Plots in the GUI

To create a Hammerstein-Wiener plot in the System Identification Tool GUI, select the Hamm-Wiener check box in the Model Views area. For general information about creating and working with plots, see Working with Plots in the System Identification Tool GUI.

To include or exclude a model on the plot, click the corresponding model icon in the System Identification Tool GUI. Active models display a thick line inside the model icon, as shown in the following figure.

After you generate a plot, you can learn more about your model by:

How to Plot Hammerstein-Wiener Plots at the Command Line

You can plot input and output nonlinearity and linear responses for Hammerstein-Wiener models using the following syntax:

plot(model)

model must be an idnlhw model object. You can use additional plot arguments to specify the following information:

The plot command opens the Hammerstein-Wiener Model Plot window. For more information about working with this plot window, see Plotting Nonlinear Block Characteristics and Plotting Linear Block Characteristics.

For detailed information about plot, type the following command at the prompt:

help idnlhw/plot

Plotting Nonlinear Block Characteristics

The Hammerstein-Wiener model can contain up to two nonlinear blocks. The nonlinearity at the input to the Linear Block is labeled uNL and is called the input nonlinearity. The nonlinearity at the output of the Linear Block is labeled yNL and is called the output nonlinearity.

To configure the plot, perform the following steps:

  1. If the top pane is not visible, click to expand the Hammerstein-Wiener Model Plot window.

  2. Select the nonlinear block you want to plot:

    • To plot uNL as a command of the input data, click the uNL block.

    • To plot yNL as a command of its inputs, click the yNL block.

    The selected block is highlighted in green.

      Note   An input to the output nonlinearity block yNL is the output from the Linear Block and not the measured input data.

  3. If your model contains multiple variables, select the channel in the Select nonlinearity at channel list. Selecting the channel updates the plot and displays the nonlinearity values versus the corresponding input to this nonlinear block.

  4. To change the range of the horizontal axis, select Options > Set input range to open the Range for Input to Nonlinearity dialog box. Enter the range using the format [MinValue MaxValue]. Click Apply and then Close to update the plot.

Plotting Linear Block Characteristics

The Hammerstein-Wiener model contains one Linear Block that represents the embedded linear model.

To configure the plot:

  1. If the top pane is not visible, click to expand the Hammerstein-Wiener Model Plot window.

  2. Click the Linear Block to select it. The Linear Block is highlighted in green.

  3. In the Select I/O pair list, select the input and output data pair for which to view the response.

  4. In the Choose plot type list, select the linear plot from the following options:

    • Step

    • Impulse

    • Bode

    • Pole-Zero Map

  5. If you selected to plot step or impulse response, you can set the time span. Select Options > Time span and enter a new time span in units of time you specified for the model.

    For a time span T, the resulting response is plotted from -T/4 to T. The default time span is 10.

    Click Apply and then Close.

  6. If you selected to plot a Bode plot, you can set the frequency range.

    The default frequency vector is 128 linearly distributed values, greater than zero and less than or equal to the Nyquist frequency. To change the range, select Options > Frequency range, and specify a new frequency vector in units of rad per model time units.

    Enter the frequency vector using any one of following methods:

    • MATLAB expression, such as [1:100]*pi/100 or logspace(-3,-1,200). Cannot contain variables in the MATLAB workspace.

    • Row vector of values, such as [1:.1:100].

    Click Apply and then Close.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS