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

5 views (last 30 days)
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

Answers (1)

Andrew Shum
Andrew Shum on 13 Jun 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!