FIT_MAXITER = 10 set angles radians s(x) = a * sin(2*pi*f/10000*x - p ) + o f = 200 a = 220 o = 513 p = 1 fit s(x) 'dds_test_1.dat' using 1:17 via p #plot "dds_test_1.dat" using 1:17 with linespoints, s(x) #pause -1 fit s(x) 'dds_test_1.dat' using 1:17 via p,a #plot "dds_test_1.dat" using 1:17 with linespoints, s(x) #pause -1 FIT_MAXITER = 20 fit s(x) 'dds_test_1.dat' using 1:17 via p,a,o,f #plot "dds_test_1.dat" using 1:17 with linespoints, s(x) #pause -1