Main Content

idnlarx/plot

(Not recommended) Plot nonlinearity of nonlinear ARX model

idnlarx/plot is not recommended. Use nlarxPlot instead to plot nonlinear ARX model nonlinearities. For more information, see Version History.

Description

plot(model) plots the nonlinearity of a nonlinear ARX model on a nonlinear ARX plot. The plot shows the nonlinearity for all outputs of the model as a function of its input regressors.

example

plot(model,color) specifies the color to use.

plot(model1,...,modelN) generates the plot for multiple models.

plot(model1,color1...,modelN,colorN) specifies the color for each model. You do not need to specify the color for all models.

example

plot(___,'NumberofSamples',N) specifies the number of samples to use to grid the regressor space on each axis. This syntax can include any of the input argument combinations in the previous syntaxes.

example

Examples

collapse all

Estimate a nonlinear ARX model and plot its nonlinearity.

Load the data and estimate a nonlinear ARX model.

load iddata1
model1 = nlarx(z1,[4 2 1],'idWaveletNetwork','nlr',[1:3]);
plot(model1)

In the plot window, you can choose:

  • The regressors to use on the plot axes, and specify the center points for the other regressors in the configuration panel. For multi-output models, each output is plotted separately.

  • The output to view from the drop-down list located at the top of the plot.

Estimate two different nonlinear ARX models from using the same data and model orders.

load iddata1
model1 = nlarx(z1,[4 2 1],'idwave','nlr',[1:3]);
model2 = nlarx(z1,[4 2 1],'idSigmoidNetwork','nlr',[1:3]);
plot(model1,'b', model2, 'g')

Estimate two models and specify the number of samples to plot.

load iddata1
model1 = nlarx(z1,[4 2 1],idWaveletNetwork);
model2 = nlarx(z1,[4 2 1],idSigmoidNetwork);
plot(model1,'b', model2, 'g','NumberofSamples',50)

Input Arguments

collapse all

Estimated nonlinear ARX model, specified as an idnlarx model object. Use nlarx to estimate the model.

Color to use to plot the regressors, specified as one of the following:

  • Character vector of color name, specified as one of the following:

    • 'b'

    • 'y'

    • 'm'

    • 'c'

    • 'r'

    • 'g'

    • 'w'

  • 3-element double vector of RGB values

By default, the colors are automatically chosen.

Data Types: double | char

Number of points used on the regressor axis to display the regressor samples, specified as a positive integer.

Data Types: double

More About

collapse all

Version History

Introduced in R2014a

expand all