MATLAB: Force the intercept of a regression to be a combination of the coefficients

fitlmlinear regressionwilkinson

I'd like to run a linear regression of the form y = a + b*x1 + c*x2, where the intercept a is equal to b+c.
How can I set this condition in fitlm using the Wilkinson notation?

Best Answer

Ok I solved it using fmincon