Matlab - Fit a Curve with Constrained Parameters

Viewed 2170

For a (x,y) dataset, let have a curve given by an expression in a, b,c... etc, such as f='a*exp(b*x)+c', to be fitted as cfit=fit(x,y,f).

Suppose we have a set of constraint such as b>0, c+b>a/2. How should i use the fit command in this case?.

3 Answers
Related