- #1

ergospherical

- 1,019

- 1,298

Matlab:

```
fit = fittype(@(a,b,X), a*sin(b*X));
[fitted, gof] = fit(X, Y, fit)
coefficients = coeffvalues(fitted)
```

*Error using fittype>iDeduceCoefficients*

The independent variable x does not appear in the equation expression.

Use x in the expression or indicate another variable as the independent variable.

The independent variable x does not appear in the equation expression.

Use x in the expression or indicate another variable as the independent variable.

What's wrong?