Error using ==> vertcat CAT arguments dimensions are not consistent.

I am defining A matrix in State Space Blockas;
[0 1.0 0 0 0 0; -4.7059 -0.0882 0 0 1.3588 0;
0 0 0 1.0 0 0 ; 0 0 0 -5.0 1.6170 4.5 ;
0 0 0 0 -0.9091 0;0 0 0 0 0 -1.0];
Note: This is a continuous straight entry.
I get this error:
Error evaluating parameter 'A' in 'Linear_PID_MODEL/Subsystem/State-Space': Error using ==> vertcat CAT arguments dimensions are not consistent.
Please Help

 採用された回答

Matt J
Matt J 2013 年 12 月 16 日

0 投票

Somewhere, you are doing something like this:
>> [rand(2); rand(3)]
Error using vertcat
Dimensions of matrices being concatenated are not consistent.

4 件のコメント

abhijit kulkarni
abhijit kulkarni 2013 年 12 月 17 日
No, I have checked every entry in command window separately and in concatenation also.
abhijit kulkarni
abhijit kulkarni 2013 年 12 月 17 日
Well , the problem was else where, it was solved. Thanks Matt.
John Amakali
John Amakali 2018 年 5 月 11 日
how did you solve it... Urgent help needed here please
Matt J
Matt J 2018 年 5 月 11 日
Stop the code at the line where the error is occuring (e.g. using DBSTOP). Then check the sizes of the matrices being concatenated at that line.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2013 年 12 月 16 日

コメント済み:

2018 年 5 月 11 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by