应用GNUPLOT实现曲线拟合的小例子

在linux进行曲线拟合,能够用gnuplot这么个工具,安装方便,比matlab轻薄短小。linux

gnuplot>f(x)=a+b*x+c*x**2+d*x**3
gnuplot>fit f(x) "datafile.txt" via a,b,c,d
plot [0:1023],f(x),"datafile.txt"
工具

datafile.txt中记录着(x,y)类型的两列数据。
能够调整选择几阶多项式进行拟合it

相关文章
相关标签/搜索