I have 5 matrices with 4 cells each. I need to fit each cell using a function in GNUplot. So, for eg. y data corresponding to the first cell will be the value of the first cell in the 5 matrices. How should I arrange this data in a file such that GNUplot automatically identifies the x and y data and fits for each cell, giving the fitted parameters as a matrix in the same order as the cells? Also, how would a script for such a fitting be written?
An example is as follows:
Matrix 1: 2 4
3 6
Matrix 2: 5 7
9 1
Like this 5 matrices exist Now the first set of y data would be 2,5,...; the second set would be 4,7,...; third set would be 3,9,...; and fourth set 6,1,... Suppose my x values are 0,1,2,4,8. Now I fit the first set of y values along with these x values to some function f(x) and get a parameter value of 4. Similarly for the other three sets I get 7,9 and 6 as the parameter value. So I would want the result to look like:
Result: 4 7
9 6
