Functions > Design of Experiments > Regression Analysis > Example: Multidfit Function
Example: Multidfit Function
Generate a matrix that contains samples taken from the vectors X0, X1, and Y, for N points.
1. Define the number of points.
Click to copy this expression
2. Generate the vectors X0 and X1.
Click to copy this expression
Click to copy this expression
3. Generate the disturbance for the signal f(x).
Click to copy this expression
Click to copy this expression
4. Combine the argument data.
Click to copy this expression
Click to copy this expression
5. Generate the Y data vector based on the values of the f(x) function and the disturbance.
Click to copy this expression
6. Define the matrix Data.
Click to copy this expression
7. Define the fitting function F(x,u).
Click to copy this expression
8. Find the parameters of the fitting function using the general multivariate fit.
Click to copy this expression
You have obtained an approximation of the coefficients used in the original function f(x).
9. Compare the Data matrix and the approximated surface.
Click to copy this expression
Was this helpful?