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

조회 수: 1 (최근 30일)
abhijit kulkarni
abhijit kulkarni 2013년 12월 16일
댓글: Matt J 2018년 5월 11일
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일
Somewhere, you are doing something like this:
>> [rand(2); rand(3)]
Error using vertcat
Dimensions of matrices being concatenated are not consistent.
  댓글 수: 4
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개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by