How to build a single input multiple output ARX or ARMAX model with MATLAB
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 System Identification Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!