Problems Indexing an Array
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I'm trying to index an array s, but I keep getting the error that the subscript indices must be real positive integers or logicals. Does anyone know how to fix this? Also for reference I am using version 2017b.
for t=1,2*n
s(t)=symsum((W(j))*(X(j))^t, j ,1,m )
t=t+1;
end
댓글 수: 0
답변 (1개)
Mischa Kim
2017년 10월 5일
편집: Mischa Kim
2017년 10월 5일
Without seeing the entire code, the only potential issue that I can see is that t must be integers starting at t = 1.
댓글 수: 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!