Scilab 5.3.0
- Scilab Online Help
- Elementary Functions
- Discrete mathematics
- Floating point
- Integer representation
- Trigonometry
- abs
- amell
- and
- &
- binomial
- bitand
- bitor
- bloc2exp
- bloc2ss
- cat
- cell2mat
- cellstr
- char
- cumprod
- cumsum
- delip
- diag
- diff
- dsearch
- exp
- eye
- flipdim
- gsort
- imag
- imult
- ind2sub
- intersect
- inttrap
- isdef
- isempty
- isequal
- isequalbitwise
- isreal
- isvector
- kron
- lex_sort
- linspace
- log
- log10
- log1p
- log2
- logm
- logspace
- lstsize
- max
- maxi
- meshgrid
- min
- mini
- modulo
- ndgrid
- ndims
- nextpow2
- norm
- ones
- or
- |
- pen2ea
- permute
- pertrans
- prod
- rand
- real
- resize_matrix
- setdiff
- sign
- signm
- size
- solve
- sort
- sqrt
- sqrtm
- squarewave
- ssrand
- sub2ind
- sum
- sysconv
- sysdiag
- syslin
- toeplitz
- trfmod
- trianfml
- tril
- trisolve
- triu
- typeof
- union
- unique
- vectorfind
- zeros
Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function
cumsum
累積和
呼び出し手順
y=cumsum(x) y=cumsum(x,'r') or y=cumsum(x,1) y=cumsum(x,'c') or y=cumsum(x,2)
パラメータ
- x
ベクトルまたは行列 (実数または行列r)
- y
ベクトルまたは行列 (実数または行列)
説明
x
がベクトルまたは行列の場合,
y=cumsum(x)
は,
列方向に取得したx
の全エントリの
累積和をy
に返します.
y=cumsum(x,'c')
(または, 等価的に,
y=cumsum(x,2)
) は
x
の列の累積和をy
に
返します: y(i,:)=cumsum(x(i,:))
y=cumsum(x,'r')
(または, 等価的に,
y=cumsum(x,1)
) は
x
の行の累積和をy
に
返します: y(:,i)=cumsum(x(:,i))
y=cumsum(x,'m')
は
x
の最初の1より大きい次元方向の
累積和となります(Matlabとの互換性用).
例
<< cumprod | Elementary Functions | delip >> |