How do I constrain a vector's value within a nonlinear fit?
2 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Torsten
on 20 Jul 2017
Put them in the fittype equation as parameters-squared.
Best wishes
Torsten.
3 Comments
More Answers (0)
See Also
Categories
Find more on Linear and Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!