This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Refine ARMAX Model with Initial Parameter Guesses at Command Line

This example shows how to refine models for which you have initial parameter guesses.

Estimate an ARMAX model for the data by initializing the A , B , and C polynomials. You must first create a model object and set the initial parameter values in the model properties. Next, you provide this initial model as input to armax , polyest , or pem , which refine the initial parameter guesses using the data.

Load estimation data.

load iddata8

Define model parameters.

Leading zeros in B indicate input delay (nk), which is 1 for each input channel.

A = [1 -1.2 0.7];
B{1} = [0 1 0.5 0.1]; % first input
B{2} = [0 1.5 -0.5]; % second input
B{3} = [0 -0.1 0.5 -0.1]; % third input
C = [1 0 0 0 0];
Ts = 1;

Create model object.

init_model = idpoly(A,B,C,'Ts',1);

Use polyest to update the parameters of the initial model.

model = polyest(z8,init_model);

Compare the two models.

compare(z8,init_model,model)

See Also