如何在Matlab中非交互使用cftool [英] how to use cftool non-interactively in matlab

查看:193
本文介绍了如何在Matlab中非交互使用cftool的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以非交互式地使用cftool.例如,给定x,y和拟合函数,无需打开工具箱GUI即可调用cftool生成并返回拟合数据.谢谢

Is there any way to use cftool non-interactively. For example, given x, y and the fitting function, calling cftool to generate and returned the fitted data without using opening the toolbox GUI. Thanks

推荐答案

您可以使用Curve Fitting Toolbox随附的fit函数.要了解更多信息,请键入doc fit.或者,您可以交互地使用cftool,然后使用文件"菜单中的生成代码"来创建一个函数,该函数使用fit命令以编程方式重复您的交互工作.以此为模板示例.

You can use the fit function that comes with Curve Fitting Toolbox. To find out more, type doc fit. Or you can use cftool interactively, then use Generate Code from the File menu to create a function that uses the fit command to repeat your interactive work programmatically. Use this as a template example.

这篇关于如何在Matlab中非交互使用cftool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆