idss state space model
이전 댓글 표시
Hello, everyone. I have a state space model which im trying to code into a matlab script:
A=[-Rr/Lr 0; 0 -Rr/Lr]; Ar=double(A);
B=[1/Lr 0; 0 1/Lr]; Br=double(B);
Bd=[1 0; 0 1]; Brd=double(Bd);
C=[1 0; 0 1; 0 0; 0 0]; Cr=double(C);
D=[0 0; 0 0; 1 0; 0 1]; Dr=double(D);
The Brd matrix here is a disturbance matrix. Now when i try to run the command: sysr=idss(Ar,Br,Cr,Dr,Brd), i get an error saying: "The sizes of state-space parameter matrices must be consistent with size and order of the model".
I have more outputs here than the # of states. Is that the issue? Thanks
답변 (1개)
Jean
2018년 9월 11일
0 개 추천
Matrix Ar says it has 2 states, matrix Br says it has 2 inputs, but matrix Cr says it has 4 states and matrix Dr says it has 4 outputs!
카테고리
도움말 센터 및 File Exchange에서 Dynamic System Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!