HOW TO WRITE SUMMATION FORM ∑_(i=1) (L-1)

回答 (2 件)

Laurent
Laurent 2013 年 9 月 4 日

0 投票

Make an appropriate vector with the values that you want to sum (or select the values from an array containing them) and use the command 'sum'.
Matt J
Matt J 2013 年 9 月 4 日
編集済み: Matt J 2013 年 9 月 4 日

0 投票

Are you trying to sum the first 256 elements of an array? If so, you would do as follows
sum(x(1:256))
Or, if length(x) is 256, then you would just do
sum(x)

カテゴリ

ヘルプ センター および File ExchangeAerospace Blockset についてさらに検索

タグ

質問済み:

2013 年 9 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by