The values of the "a" and "c" properties must be matrices with the same number of columns.
15 ビュー (過去 30 日間)
古いコメントを表示
Error using ss (line 345)
The values of the "a" and "c" properties must be matrices with the same number of columns.
A=[-0.0895 -0.286 0;-0.0439 -0.272 0;0 1 0]
A =
-0.0895 -0.2860 0
-0.0439 -0.2720 0
0 1.0000 0
>> b=[0.0145;-0.0122;0]
b =
0.0145
-0.0122
0
>> c=[0;0;1]
c =
0
0
1
>> d=[0]
d =
0
sys=ss(A,b,c,d)
Error using ss (line 345)
The values of the "a" and "c" properties must be matrices with the same number of columns.
0 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2020 年 10 月 3 日
編集済み: KALYAN ACHARJYA
2020 年 10 月 3 日
Error clearly stated that A and c state-space matrices to be same number of columns to avoid this error.
A=[-0.0895 -0.286 0;-0.0439 -0.272 0;0 1 0]
b=[0.0145;-0.0122;0]
c=randi(5,[2,3]); % Changed here for test
d=[0]
sys=ss(A,b,c,d)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!