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.
2. Generate the vectors X0 and X1.
3. Generate the disturbance for the signal f(x).
4. Combine the argument data.
5. Generate the Y data vector based on the values of the f(x) function and the disturbance.
6. Define the matrix Data.
7. Define the fitting function F(x,u).
8. Find the parameters of the fitting function using the general multivariate fit.
You have obtained an approximation of the coefficients used in the original function f(x).
9. Compare the Data matrix and the approximated surface.