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

3 vues (au cours des 30 derniers jours)
zahid
zahid le 26 Avr 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?

Réponses (1)

Walter Roberson
Walter Roberson le 26 Avr 2017
sum(X(1:5).^2)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by