how to do sum up elements one by one (sequence addition)

回答 (2 件)

halleyhit
halleyhit 2017 年 1 月 8 日

0 投票

just a hint: [1 3 6 10]'=[1 1 1 1;0 1 1 1; 0 0 1 1; 0 0 0 1]*[1 2 3 4]'
Roger Stafford
Roger Stafford 2017 年 1 月 9 日

0 投票

cumsum([1 2 3 4]) equals [1 3 6 10]

カテゴリ

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

タグ

質問済み:

2017 年 1 月 8 日

回答済み:

2017 年 1 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by