当前位置:网站首页>MATLAB中如何把cftool拟合的函数输出到命令行(解决如何导出拟合后的曲线数据)
MATLAB中如何把cftool拟合的函数输出到命令行(解决如何导出拟合后的曲线数据)
2022-08-09 10:52:00 【1nsights】
原文地址:
解决cftool不知道如何导出拟合后的曲线数据的问题!
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.yuque.com/duzh929/blog/iv5d8d
解决cftool不知道如何导出拟合后的曲线数据的问题!
1、先导入数据,准备好横坐标和纵坐标的值
2、打开cftool工具箱,选择相应的参数

3、导出为函数
可以得到一个函数名为createFit的文件
4、使用拟合的函数,导出拟合后的曲线数据
x为拟合的横坐标,createFit是拟合的函数,y是拟合后的曲线数据
x = 1:2048;
[fit,gof] = createFit(line_average);

fit是函数的输出,是一个结构体,可以用fit.a1得到a1的系数,同理其它系数也可得。知乎上看到很多小伙伴不知道如何导出拟合后的曲线数据的问题。
把横坐标传给fit就可以了:
y = fit(x)';
简单验证一下,可以发现结果是对的啊!


帮到您的话,请大家帮我点个赞吧!
参考
https://www.zhihu.com/question/60436018
边栏推荐
- shell脚本实战(第2版)/人民邮电出版社 脚本1 在PATH中查找程序
- Input and output of cnn
- 依赖注入(Dependency Injection)框架是如何实现的
- 自从我使用HiFlow场景连接器后,在也不用担心成为“落汤鸡”了
- 相关系数计算,热力图绘制,代码实现
- golang runtime Caller、Callers、CallersFrames、FuncForPC、Stack作用
- 支付宝小程序的接入
- [Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
- vite的原理,手写vite
- 数据存储:对dataframe类,使用to_csv()将中文数据写入csv文件
猜你喜欢

支付宝小程序的接入

Netscope: Online visualization tool for neural network structures

性能测试(05)-表达式和业务关联-json关联

CSDN的markdown编辑器语法完整大全

情感分析SowNLP词库

Netscope:神经网络结构在线可视化工具

golang 标准库json Marshal、Unmarshal坑

1009 Product of Polynomials C语言多项式乘积(25分)

Probably 95% of the people are still making PyTorch mistakes
![[Original] Usage of @PrePersist and @PreUpdate in JPA](/img/a0/5aebdef4a12fe55b4782b69e39b817.png)
[Original] Usage of @PrePersist and @PreUpdate in JPA
随机推荐
Netscope: Online visualization tool for neural network structures
unix环境编程 第十五章 15.3 函数popen和pclose
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization论文阅读
Tensorflow realize parameter adjustment of linear equations
TensorFlow—计算梯度与控制梯度 : tf.gradients和compute_gradients和apply_gradients和clip_by_global_norm控制梯度
unix环境编程 第十四章 14.4 I/O多路转接
[Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
threejs+shader 曲线点运动,飞线运动
批量转换经纬度的网页实现方法
numpy库中的函数 bincount() where() diag() all()
Unix Environment Programming Chapter 15 15.9 Shared Storage
C语言数组题_校门外的树_标记法
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 1 Find programs in the PATH
1007 Maximum Subsequence Sum (25分)
shell脚本实战(第2版)/人民邮电出版社 脚本2 验证输入:仅限字母和数字
VBA实战(11) - 工作表(Sheet) 操作汇总
Unix Environment Programming Chapter 15 15.7 Message Queuing
golang runtime Caller、Callers、CallersFrames、FuncForPC、Stack作用
在线编译matlab,亲测好用
unix系统编程 第十五章 15.2管道