暨
累积总和
Syntax
b =暨(a)
b =暨(a,dim)
b =暨(___,direction)
b =暨(___,nanflag)
Description
returns the cumulative sum ofB
= cumsum(A
)A
starting at the beginning of the first array dimension inA
其大小不等于1。
If
A
是一个向量,然后暨(A)
returns a vector containing the cumulative sum of the elements ofA
。If
A
是矩阵,然后暨(A)
返回包含每列的累积总和的矩阵A
。If
A
是一个多维数组,然后暨(A)
acts along the第一个nonsingleton维度。
Examples
Input Arguments
Output Arguments
More About
尖端
MATLAB中的许多累积功能®support the
“反向”
选项。This option allows quick directional calculations without needing a flip or reflection of the input array.
Extended Capabilities
在R2006a之前引入
这个话题有帮助吗?