How do I constrain a vector's value within a nonlinear fit?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
matlabkid602
le 20 Juil 2017
Commenté : matlabkid602
le 20 Juil 2017
I am fitting a set of data using nlinfit as magnetic dipoles and I want my fitted parameters to be only positive.
How do I make this constraint?
0 commentaires
Réponse acceptée
Torsten
le 20 Juil 2017
Put them in the fittype equation as parameters-squared.
Best wishes
Torsten.
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Linear and Nonlinear Regression 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!