nzmax
Reserved size for nonzero elements.
📝Syntax
v = nzmax(M)
📥Input Arguments
Parameter Description
M a matrix: double or logical, sparse or not.
📤Output Arguments
Parameter Description
v a integer value.
📄Description

nzmax returns the amount of storage allocated for nonzero elements.

💡Examples
I = [1 2 3];
J = [3 1 2];
V = [32 42 53];
sp = sparse(I, J, V, 5, 4, 10)
size(sp)
nnz(sp)
nzmax(sp)
🔗See Also
sparsennz
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub