How does state space form include input delay in MATLAB?
Mostrar comentarios más antiguos
I got this code from 'Time Delays in Linear System' MATLAB help.
A=-2; B=3; C=[1;-1];D=0;
G = ss(A,B,C,D,'InputDelay',1.5)
Now I want to implement this in another model where matrix are-
A=[1 2 3;4 3 2;1 2 3]; C=[0 3 0];
D=[0 -1];
B=[3;5;7];
H = ss(A,B,C,D,'InputDelay',[1.5;2.1;3.2])
But after running the above code, we got an error. "The values of the "a" and "b" properties must be matrices with the same number of rows.".
Please help me in this regard. Thank you.
3 comentarios
I get a different error:
A=[1 2 3;4 3 2;1 2 3]; C=[0 3 0];
D=[0 -1];
B=[3;5;7];
H = ss(A,B,C,D,'InputDelay',[1.5;2.1;3.2])
This is reasoinable because ‘B’ and ‘D’ are input arrays, so they must have the same sizes (rows and columns).
.
Sol Elec
el 9 de Abr. de 2022
Star Strider
el 10 de Abr. de 2022
Exactly.
And ‘B’ and ‘D’ are not the same sizes, an additional error.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Time and Frequency Domain Analysis 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!
