Usage of the commande nnls(A,b,tol) in MATLAB new versions
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I want to solve the following non negative least squares problem : nnls(A,b,tol). Given a matrix A, a vector b and a tolerance tol, I want to fin x such ||A*x-b||^2 < tol* ||b||^2 with x>=0
Does someone have any idea how to do it in matlab ?
Regards !
0 commentaires
Réponses (1)
Animesh
le 10 Juin 2024
In MATLAB, you can solve a non-negative least squares (NNLS) problem using the 'lsqnonneg' function.
To read more about it, please refer to the following link - https://www.mathworks.com/help/matlab/ref/lsqnonneg.html
Voir également
Catégories
En savoir plus sur Linear Least Squares dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!