phy*_*its 4 gnuplot data-fitting
如何拟合xy deltax delta y之类的数据?我必须对两个轴的误差进行线性拟合加权,确切的语法是什么?
适合f (x) "file.txt" u1:2:3:4通过a,b有xyerrorbars。
f (x) =a*x + b
Run Code Online (Sandbox Code Playgroud)
结果:invert_RtR中的奇异矩阵
要适应x和y错误,您需要gnuplot5。然后使用语法
f(x) = a*x + b
fit f(x) "file.txt" using 1:2:3:4 xyerrors via a,b
Run Code Online (Sandbox Code Playgroud)
有关完整的演示,请参见http://gnuplot.sourceforge.net/demo_5.0/fit.html上的最后一个示例。