??? Index exceeds matrix dimensions.
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi guys, I do not know why I receive this error when I reach this equation in my code. ??? Index exceeds matrix dimensions. the equation is: S(k)= a(k) + b(k)*(X-x(k)) + ((X-x(k))^2)*c(k) + ((X-x(k))^3)*d(k) ; Best,
댓글 수: 0
답변 (2개)
Geoff
2012년 4월 13일
The variable k is either negative or is larger than the dimensions of one of a, b, c, d, or x
댓글 수: 0
Jan
2012년 4월 13일
The standard method to solve this is:
dbstop if error
Then Matlab stops, when the error occurs, and you can inspect the values of the local variables e.g. in the command window.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!