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

Respuestas (1)

Mischa Kim
Mischa Kim el 5 de Oct. de 2017
Editada: Mischa Kim el 5 de Oct. de 2017

0 votos

Without seeing the entire code, the only potential issue that I can see is that t must be integers starting at t = 1.

Categorías

Etiquetas

Preguntada:

el 5 de Oct. de 2017

Editada:

el 5 de Oct. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by