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

3 ビュー (過去 30 日間)
zahid
zahid 2017 年 4 月 26 日
回答済み: Walter Roberson 2017 年 4 月 26 日
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?

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 4 月 26 日
sum(X(1:5).^2)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by