nnmf
Nonnegative matrix factorization.
📝Syntax
[W, H] = nnmf(A, k)
[W, H] = nnmf(A, k, Name, Value)
[W, H, D] = nnmf(...)
📄Description

nnmf factors the nonnegative matrix A into nonnegative factors W and H so that W*H approximates A.

Supported name-value options are Algorithm, W0, H0, Options, and Replicates. Algorithm can be als or mult. The Options structure can be created with statset and supports Display, MaxIter, TolFun, and TolX.

The rows of H are normalized to unit length and columns of W are ordered by decreasing length. D is the root mean square residual.

💡Examples
A = rand(20, 10);
[W, H, D] = nnmf(A, 3)
🔗See Also
pcastatset
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub