how to extract graph from cftool?
显示 更早的评论
Hi everyone, i am just learning very basics of matlab.(very very elementary step)
- i used cftool to fit my data into the graph.
- i want to know how to bring 'the code used in the cftool automatically' to the workspace.
- for example, i found how to work cftool. like this

- And i want to move this graph into the original workspace like this. (this is not what i've done, so i don't know how to do it.)

- i hope someone teach me the way very kindly.. thanks.
回答(1 个)
ag
2025-2-5
0 个投票
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!
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!