Suppose I've a set of samples for a function f, I've to find the w_i and deltas of this formulation:

(this is the function to minimize)

while the x are known and K is known aswell.

Any hint/pointer to MATLAB tools to do it/ easy way to do it?

Skip to content# MATLAB: Function fitting given samples and two varying paramters

###### Related Question

curve fittingfittingfunction

Suppose I've a set of samples for a function f, I've to find the w_i and deltas of this formulation:

(this is the function to minimize)

while the x are known and K is known aswell.

Any hint/pointer to MATLAB tools to do it/ easy way to do it?

## Best Answer