curve fitting tool equation

12 views (last 30 days)
Saúl
Saúl on 3 Sep 2014
Answered: Bowen Song on 16 Mar 2019
im just starting to use the curve fitting tool, so i was wondering where can i see the equation that describes my fit surface? iknow this is probably a simple question but i cant find it anywhere.

Answers (2)

Aniruddha Katre
Aniruddha Katre on 3 Sep 2014
There should be a panel called "Results" in the cftool window. This panel shows the equation as well as the coefficients (with 95% confidence bounds) and the Goodness of fit once you specify the fit type.
If you want to generate code for a specific fit, you can navigate to the "File" drop down menu of the cftool window and click on Generate Code.
For an example of what the cftool window should look like, see the attached screenshot.
  1 Comment
Saúl
Saúl on 3 Sep 2014
Thanks for your answer. There's no general model output in my reuslts window, there's only coefficients and goodness of fit, i'm not sure why.

Sign in to comment.


Bowen Song
Bowen Song on 16 Mar 2019
For those who are still looking for answers. MATLAB 2018b version. In "File"->"Generate Code". You will see the src code for generating your plane fit. You can extract what you need from there.

Community Treasure Hunt

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

Start Hunting!