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!