How to build a single input multiple output ARX or ARMAX model with MATLAB
Ältere Kommentare anzeigen
I want to build a single input multiple output ARMAX model,then the AR coefficient is extracted.
for example
y is an array of 6 rows and 8192 columns,I'll take the first line as input and the last five as output。
The AR coefficient is 2 and the Ma coefficient is 3
This is my code:
sr=y(1,:)'; %input
sc=y(2:6,:); %output
u1 = iddata([], sr);
sc=sc';
yy = iddata(sc);
na=[2 2 2 2 2];
nb=[3];
nk=[0];
nc=[0];
sys = armax([yy u1],[na nb nk nc]);
xishu=sys.A;
But matlab prompts:
In the "armax" command, the number of rows in the orders matrix must be equal to the number of model outputs.
I don't know where I was wrong
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Nonlinear ARX Models finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!