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!