matlab —— cftool曲线拟合工具箱的使用

本文转自 https://blog.csdn.net/starter_____/article/details/82316500

				版权声明:本文为博主原创文章,未经博主允许不得转载。					https://blog.csdn.net/starter_____/article/details/82316500				</div>
							            <div id="content_views" class="markdown_views">
						<!-- flowchart 箭头图标 勿删 -->
						<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
						<p>Matlab有一个功能强大的曲线拟合工具箱 cftool ,使用方便,能实现多种类型的线性、非线性曲线拟合。</p>

1、输入数据:
这里写图片描述

2、启动cftool工具箱

>>cftool
  
  
  • 1

3、导入数据:

这里写图片描述

4、功能介绍:

这里写图片描述

  • 第一个是“main plot”,画出主要的图
  • 第二个是“Residuals plot”,画出残差图
  • 第三个是“Contour plot”,画出轮廓图
  • 第六个是“Pan”,可用来拖曳坐标轴
  • 第七个是“Data cursor”,进行数据提示
  • 第八个是“Exclude outliers”,剔除异常值

这里写图片描述

  • 对数据进行中心化与比例化处理,当拟合情况较差时,可以通过该选项得到更好的拟合效果

这里写图片描述

  • Custom Equations:用户自定义的函数类型
  • Exponential:指数逼近,有2种类型, a*exp(b*x) 、 a*exp(b*x) + c*exp(d*x)
  • Fourier:傅立叶逼近,有7种类型,基础型是 a0 + a1*cos(x*w) + b1*sin(x*w)
  • Gaussian:高斯逼近,有8种类型,基础型是 a1*exp(-((x-b1)/c1)^2)
  • Interpolant:插值逼近,有4种类型,linear、nearest neighbor、cubic spline、shape-preserving
  • Polynomial:多形式逼近,有9种类型,linear ~、quadratic ~、cubic ~、4-9th degree ~
  • Power:幂逼近,有2种类型,a*x^b 、a*x^b + c
  • Rational:有理数逼近,分子、分母共有的类型是linear ~、quadratic ~、cubic ~、4-5th degree ~;此外,分子还包括constant型
  • Smoothing Spline:平滑逼近(翻译的不大恰当,不好意思)
  • Sum of Sin Functions:正弦曲线逼近,有8种类型,基础型是 a1*sin(b1*x + c1)
  • Weibull:只有一种,a*b*x^(b-1)*exp(-a*x^b)
				版权声明:本文为博主原创文章,未经博主允许不得转载。					https://blog.csdn.net/starter_____/article/details/82316500				</div>
							            <div id="content_views" class="markdown_views">
						<!-- flowchart 箭头图标 勿删 -->
						<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
						<p>Matlab有一个功能强大的曲线拟合工具箱 cftool ,使用方便,能实现多种类型的线性、非线性曲线拟合。</p>

猜你喜欢

转载自blog.csdn.net/good_learner_1/article/details/88767753