鹰击长空,拼搏吧!!! 态度决定成败!分享 http://blog.sciencenet.cn/u/eaglezxw 邹兴文,工学硕士,甘肃漳县人,计算机视觉入门者,算法工程师

博文

Matlab曲线拟合工具箱CFtool使用

已有 12021 次阅读 2010-10-27 15:21 |个人分类:matlab开发|系统分类:科研笔记| MATLAB, 使用, 工具箱, 曲线拟合, CFtool

Matlab曲线拟合工具箱CFtool使用 CFtool是Matlab中的曲线拟合工具箱,能够实现很多基本的曲线拟合算法,使用非常方便,现将其使用方法简介如下: 步骤1:在命令行输入数据x、y x=[2000 2500 3000 3500 4000 4500 5000 5500 6000 6500 7000 7500 8000 8500 9000 9500]'; y=[4.46 2.58 1.95 1.62 1.42 1.27 1.16 1.08 1.02 0.96 0.92 0.88 0.85 0.83 0.80 0.78]'; 步骤2:打开曲线拟合工具箱cftool 步骤3:进行实际操作 1、 点击“Data”,选择 X Data 和Y Data,然后点击“Create data set”然后关闭 2、 点击“Fitting”按钮,弹出“Fitting”窗口 点击“New fit”按钮,可修改项目名称“Fit name”,通过“Data set”下拉菜单选择数据集,然后通过下拉菜单“Type of fit”选择拟合曲线的类型,工具箱提供的拟合类型有: Custom Equations: Exponential: Fourier: Gaussian: Interpolant: Polynomial: Power: Rational: Smoothing Spline: Sum of Sin Functions: Weibull: 如选择Polynomial,则有以下几种类型: Linear Polynomial; Quadratic Polynomial; Cubic Polynomial 4th degree Polynomial 一直到 9th degree Polynomial. 3、 选择9th degree Polynomial,然后点击“apply”,则在“Results”中显示拟合结果: Warnings during fitting: Equation is badly conditioned. Remove repeated data points or try centering and scaling. Linear model Poly9: f(x) = p1*x^9 + p2*x^8 + p3*x^7 + p4*x^6 + p5*x^5 + p6*x^4 + p7*x^3 + p8*x^2 + p9*x + p10 Coefficients (with 95% confidence bounds): p1 = -1.905e-032 (-3.262e-032, -5.488e-033) p2 = 1.073e-027 (3.705e-028, 1.775e-027) p3 = -2.638e-023 (-4.214e-023, -1.062e-023) p4 = 3.715e-019 (1.706e-019, 5.724e-019) p5 = -3.299e-015 (-4.898e-015, -1.7e-015) p6 = 1.915e-011 (1.093e-011, 2.737e-011) p7 = -7.27e-008 (-9.995e-008, -4.544e-008) p8 = 0.0001742 (0.0001182, 0.0002302) p9 = -0.2402 (-0.305, -0.1755) p10 = 148.2 (116.2, 180.1) Goodness of fit: SSE: 0.0003373 R-square: 1 Adjusted R-square: 0.9999 RMSE: 0.007498 同时,在拟合工具箱cftool中显示拟合曲线









https://blog.sciencenet.cn/blog-379528-377658.html

上一篇:西超级杯-超级无敌梅西回归—帽子戏法,巴萨翻盘夺冠
下一篇:生成matlab gui exe文件的方法
收藏 IP: .*| 热度|

1 杨华磊

发表评论 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-9-29 13:24

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部