Solving state space equation using ODE45
이전 댓글 표시
Hello, I'm new to this. I have just about the most minimal skill possible when it comes to writing code or programs, so please bear with me. I am trying to numerically integrate a mechanical system with MATLAB, and I am getting errors saying my dimensions must agree. I have done this twice before with a program my professor wrote, but all of my examples were 2x2 matricies. The problem I am dealing with now is a 6x6. I have a picture of my matrix and code attached. How would I write this in a way that MATLAB can understand? Thanks
답변 (1개)
Torsten
2017년 12월 6일
0 개 추천
x0 should be a column vector, not a row vector.
Best wishes
Torsten.
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!