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

3 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Walter Roberson
Walter Roberson il 26 Apr 2017
sum(X(1:5).^2)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by