MATLAB Answers

How to run a curve approximation on a script using a function defined in a file and display the goodness of fit in a command window

3 views (last 30 days)
JUNHWAN LEE
JUNHWAN LEE on 16 May 2020
Answered: Matt J on 16 May 2020
I want to do a curve approximation on a script and show the goodness of fit in the command window at the same time as the result. ( SSE. Determination Factor, Degree of Freedom Adjusted Determination Factor, RMSE, etc.).
What syntax do I need to put in my script to make it appear in a command window or workspace?

  0 Comments

Sign in to comment.

Accepted Answer

Matt J
Matt J on 16 May 2020
You can't use the curve fit tool for a curve defined in an mfile. You can use lsqcurvefit, if you have the optimization toolbox, but you will have to do your own calculation of the goodness of fit metrics.

  0 Comments

Sign in to comment.

More Answers (0)


Translated by