My matrix is bigger than it should be, can't understand why.

I can't figure out why my B matrix is giving me a 33 x 1 matrix instead of a 6 x 1. When I change x to a single value, the code works.

댓글 수: 1

Please paste your code so that it's easier to see, or better yet, attach the m-file.

댓글을 달려면 로그인하십시오.

답변 (1개)

Arief Anbiya
Arief Anbiya 2014년 7월 17일
Well matrix B should be 33 x 1, since you define B as :
B = [0, Ay, 0, Tbe, 0, Tcog];
Ay, Tbe, and Tcog have size (10 x 1). the components of Tbe and Tcog are components of Ay or P multiple by a constant.

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2014년 7월 17일

답변:

2014년 7월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by