From: stibala <ada...@gm...> - 2013-03-11 17:37:04
|
Hello, I have a matrix data set, each column contains a curve and I have a function fitted to each curve. I need to plot the original curves minus the respective fitted function and here comes the problem. My wanted code with for loop is p for [i=2:11] "data.txt" u 1:(column(i) - function>i<($1)) so I can't imagine how to iterate through my functions numbered as the corresponding columns in data. It can be done without the loop simply p "data.txt" u 1:($2 - function2($1)), "data.txt" u 1:($3 - function3($1)), ... but I would like to plot it within the loop because I have a lot of data. All the functions are the same, but with different constants, for example g2(x)=exp(a2*x+b2)+c2 and g3(x)=exp(a3*x+b3)+c3. Thank you for your help Adam Stíbal -- View this message in context: http://gnuplot.10905.n7.nabble.com/for-loop-iterating-functions-tp17187.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |