idss state space model
Afficher commentaires plus anciens
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
Réponses (1)
Jean
le 11 Sep 2018
0 votes
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!
Catégories
En savoir plus sur Dynamic System Models dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!