フィルターのクリア

Series of vector values

3 ビュー (過去 30 日間)
Nicolò Monaco
Nicolò Monaco 2021 年 3 月 15 日
コメント済み: Nicolò Monaco 2021 年 3 月 15 日
I have a vector and I want another vector of the same lenght having as values the sequential sum of the values of the first vector. Basically I want a series from vector values. Ideas?

採用された回答

Steven Lord
Steven Lord 2021 年 3 月 15 日
You want the cumulative sum?
x = 1:10
x = 1×10
1 2 3 4 5 6 7 8 9 10
y = cumsum(x)
y = 1×10
1 3 6 10 15 21 28 36 45 55
  1 件のコメント
Nicolò Monaco
Nicolò Monaco 2021 年 3 月 15 日
sorry for the stupid question, but thank youuu :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by