Thanks again.
It seems my programming skills are not upto scratch !
I am using the code below
x = Array(10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
y = Array(9.9, 9.7, 9.5, 9.3, 9.1, 8.9, 8.7, 8.6, 8.5, 8.45, 8.4)
order = 3
'x input time in sec's of first reading
'y input resistance recorded
'z output of best fit
CWStat1.PolyFit x, y, order, z, coef, mse
For example I have recorded my first resistance reading of 9.9 Ohms ater 10 secs and then recorded further readings for a total time of 20secs.
Can you help with example code for this please ?
i.e to use a 3rd order polynomial to calculate resistance at zero.
Many thanks again.