To export the generated fit to the workspace, kindly follow the below steps:
- Select a fit and save it to the MATLAB workspace using one of these methods:
- Right-click the fit in the Table Of Fits pane, and select Save "myfitname" to Workspace.
- On the Curve Fitter tab, in the Export section, click Export and select Export to Workspace.
- Select the options you intend to export, and click ok.
For more details, please refer to the following MathWorks documentation: https://www.mathworks.com/help/curvefit/generating-code-and-exporting-fits-to-the-workspace.html#:~:text=Surface%20Fitting.-,Exporting%20a%20Fit%20to%20the%20Workspace,-To%20export%20a
Hope this helps!