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

3 Ansichten (letzte 30 Tage)
zahid
zahid am 26 Apr. 2017
Beantwortet: Walter Roberson am 26 Apr. 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?

Antworten (1)

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

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by