How does state space form include input delay in MATLAB?
古いコメントを表示
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 件のコメント
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
2022 年 4 月 9 日
Star Strider
2022 年 4 月 10 日
Exactly.
And ‘B’ and ‘D’ are not the same sizes, an additional error.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Time and Frequency Domain Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
