Hi Adam,
would this help to solve your problem?
a1 = 0.1 # define all your constants
a2 = 0.2
a3 = 0.3
b1 = 1.2
b2 = 2.3
b3 = 3.4
c1 = -1
c2 = -2
c3 = -3
# define a(n),b(n),c(n)-functions
a(n) = a1*(n==1) + a2*(n==2) + a3*(n==3) # and so on...
b(n) = b1*(n==1) + b2*(n==2) + b3*(n==3)
c(n) = c1*(n==1) + c2*(n==2) + c3*(n==3)
# define your function which will be subtracted
GPFUN_g = "g(n,x) = exp(a(n)*x+b(n))+c(n)"
I haven't tested it to the very end but if you using the function g(n,x)
and something like the following...
plot for [2:11] "data.txt" using 1:(column(i) - g(i,$1))
There might be certainly a more elegant way to do it...
Anyway, let me know whether it works or not.
Theo.
|