MATLAB: How to fit a curve to a function and then integrate over that curve using the Curve Fitting Toolbox 1.2.2 (R2008b)
Curve Fitting Toolbox
I would like to fit a curve to a dataset and then integrate over it.
Best Answer
One way to accomplish this goal is to use a combination of the FIT and INTEGRATE functions as shown in the documentation for the INTEGRATE function which can be found by typing 'doc integrate' at the MATLAB Command Prompt.
Read up on the concepts of Overfitting, Underfitting, Variance and Regression. You are fitting a function of 3 variables to 3 data points. I would say a regression problem with 3 data points is fairly meaningless to begin with, but if you have to do it, fit a line instead.
Best Answer