How can be take sum over the subscript of a variable using matlab

3 visualizaciones (últimos 30 días)
zahid
zahid el 26 de Abr. de 2017
Respondida: Walter Roberson el 26 de Abr. de 2017
Hellow guys
Suppose I am interested in summing of the variable, e.g
over its subscript "i" How can i do this in the symbolic toolkit?

Respuestas (1)

Walter Roberson
Walter Roberson el 26 de Abr. de 2017
sum(X(1:5).^2)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by