Azzera filtri
Azzera filtri

Why there is an error of undefined function 'coeffvalues' for input arguments of type 'fittype'

1 visualizzazione (ultimi 30 giorni)
Hi All
I am trying to get the coefficients values for AM-AM curve fit to Rapp model function.
Using the toolbox of curvefit I generated a script.
However, I could not get the values using the command
k = coeffvalues(fun). where k is valus vector fun is function of Rapp model.
Error is : undefined function 'coeffvalues' for input arguments of type 'fittype'
Appreciate your help and assistance
Kind Regards
Av

Risposte (1)

Andrew Shum
Andrew Shum il 13 Giu 2017
Based on the error, it looks like you are passing a fittype object instead of a cfit or sfit object. Look at the example in the MatLab documentation.
https://www.mathworks.com/help/curvefit/coeffvalues.html#f3-588092

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by