How does state space form include input delay in MATLAB?
Afficher commentaires plus anciens
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 commentaires
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
le 9 Avr 2022
Star Strider
le 10 Avr 2022
Exactly.
And ‘B’ and ‘D’ are not the same sizes, an additional error.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Time and Frequency Domain Analysis 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!
