|
From: leo m. <llu...@go...> - 2009-09-09 14:07:07
|
Dear all, is it possible to set up gnuplot in a way that it won't exit after a "singular matrix" message during fitting? I have a script like this... ----x------> #!/usr/bin/gnuplot set fit errorvariables FIT_LIMIT = 1e-6 FIT_MAXITER = 80 f(x) = a * exp(b*x + c) + d fit f(x) "exp.dat" using 2:3 via a, b, c, d fx_err = a_err + b_err + c_err + d_err g(x) = e + f*x + g*x**2 + h*x**3 + i*x**4 + j*x**5 fit g(x) "exp.dat" using 2:3 via e, f, g, h, i, j gx_err = e_err + f_err + g_err + h_err + i_err + j_err [...] <-----x------- After fitting to different models i'll choose the one with the smallest residual and let it plot to a png file. Is there a way to "hack" this immediate exit? Best regards |