sparse
Create sparse matrix
Syntax
S = sparse(A)
S = sparse(m,n)
s =稀疏(i,j,v)
S = sparse(i,j,v,m,n)
S = sparse(i,j,v,m,n,nz)
描述
例子
Input Arguments
提示
MATLAB®将稀疏矩阵以压缩稀疏列格式存储。有关更多信息,请参见John R. Gilbert,Cleve Moler和Robert Schreiber的稀疏的矩阵InMATLAB:设计和实施。
这
accumarray
功能的积累行为与sparse
。accumarray
使用n- 二维下标,但sparse
使用2-D subscripts.accumarray
adds elements that have identical subscripts into the output by default, but can optionally apply any function to the bins.sparse
only adds elements that have identical subscripts into the output.
See Also
accumarray
|诊断
|寻找
|full
|issparse
|nnz
|nonzeros
|新西兰max
|spalloc
|speye
|spones
|sprandn
|sprandsym
|间谍
在R2006a之前引入
这个话题有帮助吗?