Export all fit results from my curve fitting toolbox for multiple fits

9 views (last 30 days)
Hi,
I have a fit session using the cftool - there are multiple fits for different sets of data. Some of the data has 2 or 3 different fits.
My ultimate goal is to compare between the different fits for each set of data point (Say for a particular mesaurment I did 3 different fits and I want to get reduced Chi-squared test in order to chose the best fit).
For that I would want to export all of my fits into the workspace as cfit objects. (I don't need any more data, just the cfit files will suffice).
I can manually use the cftool option and extract every one of them wth Fit>Save to workspace and chose only the checkbox with 'Save fit to MATLAB object named:'
However it seems like a redundent manual work, is there a way to do it automatically.
Here's an example of my fits : each row is a unique data set and for some of them I have fit#1,2 and 3 , these are the different versions.

Answers (0)

Community Treasure Hunt

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

Start Hunting!