How to use nnz?

editAnswer

reportReport

Answer(s) available: 1

Vidyut Sarma

, Congressional Aide, Quality Standards Analytical Dns

nnz (MATLAB Functions) n = nnz(X) returns the number of nonzero elements in matrix X . The density of a sparse matrix is nnz(X)/prod(size(X)) .

thumb_upUpvote35

smsComment

reportReport