lsqnonneg function without constraints
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
rihab
le 12 Nov 2015
Réponse apportée : John D'Errico
le 12 Nov 2015
lsqnonneg function of MATLAB helps to find value of x that minimizes norm of|C*x - d| subject to x >= 0. However, I want to find value of x that minimizes norm of|C*x - d| without any constraints. Is there some function in MATLAB to do so?
0 commentaires
Réponse acceptée
John D'Errico
le 12 Nov 2015
Um, zillions of them?
lsqcov, regress, fit, lsqlin, lsqr, and that ignores all the nonlinear iterative solvers.
Turns out the most trivial, is just
x = C\d;
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!