I´m always getting the following warning message:
Warning: Options LargeScale = 'off' and Algorithm = 'trust-region-reflective'
conflict. Ignoring Algorithm and running active-set algorithm. To run
trust-region-reflective, set LargeScale = 'on'. To run active-set without this
warning, set Algorithm = 'active-set'.
What am I doing wrong?
not exactly like you want but you can enforce the y-value between two knots to be zero:
y = sin(x);
y = y + 0.1*randn(size(y));
nknots = 5;
lo = -inf(1,nknots);
up = +inf(1,nknots);
lo(3) = 0;
up(3) = 0;
shape = struct('p',0,'lo',lo,'up',up);
options = struct('shape', shape,'animation', 1, 'knotremoval','none');
Brilliant package Bruno. Quick question.
I know you can fix any given knot, but is it possible to fix a given not to a y-value but let the least squares find the best x-value for it?
I'm using 4 knots/3 lines to represent my data but I would always like the 3rd knot to have y=0. While this condition is met some of the time (by chance) ideally I would like to enforce it.