如果有的话该如何调用呢?
有模型可以训练
拟合还是插值?
前者可以使用贝塞尔算法,后者可以使用三次样条插值
都是图形学的基础内容,公式也不复杂,何必总去寻求现成的库
多项式曲线的拟合
p=polyfit(x,y,n) x,y为横,纵坐标,n为多项式的次数
用mathlab很方便,插值函数为interp2 等等
matlab有拟合工具箱的,还是图形化的界面,可以选许多拟合函数的,好好查查书吧
Polynomials.函数集合
roots - Find polynomial roots.
poly - Convert roots to polynomial.
polyval - Evaluate polynomial.
polyvalm - Evaluate polynomial with matrix argument.
residue - Partial-fraction expansion (residues).
polyfit - Fit polynomial to data.
polyder - Differentiate polynomial.
conv - Multiply polynomials.
deconv - Divide polynomials.
你自己用 help 命令看看,这是拟合的函数集合,看看其具体功能吧
to:楼主
我是在去年搞数学建模的时候用的MATLAB,现在时过境迁了,只有大概映象了,不好意思
yun
Matlab Curve Fitting Toolbox
Opening the Curve Fitting Tool
The Curve Fitting Tool is a graphical user interface (GUI) that allows you to
Visually explore one or more data sets and fits as scatter plots.
Graphically evaluate the goodness of fit using residuals and prediction bounds.
Access additional interfaces for
Importing, viewing, and smoothing data
Fitting data, and comparing fits and data sets
Marking data points to be excluded from a fit
Selecting which fits and data sets are displayed in the tool
Interpolating, extrapolating, differentiating, or integrating fits
You open the Curve Fitting Tool with the cftool command.
cftool
来自www.mathworks.com
简单的说就是在命令窗口输入
cftool
回车搞定
我已经不研究matlab了,楼主还是好好找本参考书吧
我参与的项目中用到了用matlab作的算法。
用matlab作成函数,留好接口,然后matlab中打包成dll。
命令行用注册自己做成的dll,然后再在c#中引用就能使用了。