idss state space model
Mostrar comentarios más antiguos
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
Respuestas (1)
Jean
el 11 de Sept. de 2018
0 votos
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!
Categorías
Más información sobre Dynamic System Models en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!