i keep getting an error in my code about my array. pls help . code and error below thank you
조회 수: 1 (최근 30일)
이전 댓글 표시
댓글 수: 2
Walter Roberson
2019년 10월 31일
We have no information about the size of x, xold,vold, aold, xtip1, xorig1, xtip2, xorig2, U, T, Us, Up, E, or R1 .
답변 (1개)
CAM
2019년 10월 31일
When you are concatenating horizontally, the number of rows must be consistent. According to your comment, all variables are 1x1, but R1 is 2x2. Thus R1 is causing the error. Either change R1 to a single row, or put the variables into a cell array, which will allow for the different variable sizes.
Why are you taking the tranpose of scalers (xold', vold', ...) ?
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!