Problems Indexing an Array
显示 更早的评论
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
回答(1 个)
Mischa Kim
2017-10-5
编辑:Mischa Kim
2017-10-5
0 个投票
Without seeing the entire code, the only potential issue that I can see is that t must be integers starting at t = 1.
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!