MATLAB Answers

Problems Indexing an Array

2 views (last 30 days)
Angela Sita
Angela Sita on 5 Oct 2017
Edited: Mischa Kim on 5 Oct 2017
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 Comments

Sign in to comment.

Answers (1)

Mischa Kim
Mischa Kim on 5 Oct 2017
Edited: Mischa Kim on 5 Oct 2017
Without seeing the entire code, the only potential issue that I can see is that t must be integers starting at t = 1.

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by