This question is closed. Reopen it to edit or answer.
how can I extract a fit parameter, that depends on the independent variable, as a vector of that variable? Thanks a lot!
1 view (last 30 days)
Image Analyst on 3 May 2020
fitParameter = SomeFunctionOfX(x); % Returns a vector the same length as x.
term1 = coeff(1) ./ x;
term2 = coeff(2) ^ 2 ./ (x. ^ 2);
% Compute formula. Note: term1, term2, and fitParameter all depend on vector x.
y = (term1 + term2) .* fitParameter;
You, of course, have to define SomeFunctionOfX() since we don't know what it is.