Origin Version (Select Help-->About Origin): 7.5714(B714) Operating System: WinXP
Hi there,
I try to customize the output of a self-defined function:
y=P1*(1-erf((x/10000)/(4*P2*P3)^0.5))
but I cannot figure out how to do two things...
1. How can I expand the regression curve to a certain area? As default origin only fits within the margins of the data present but does not expand e.g. until x = 0. Is there a possibility to alter the fdf-file in order to do so?
2. How can I customize the "parameter output window"? Currently it says the following:
-------------------------------- Data: Data1_B Model: ErrorFunction Weighting: y No weighting
I think what you want can be done on the After Fit scripts window. If you can't find that window click the More button and select Scripts > After Fit.
1. In the Fit Curve section at the top select Uniform X and enter the limits over which you want the curve to stretch.
2. Uncheck the Write Parameters to Results Log option and check Enabled. Then enter the following script in the box below. Perform your fit as usual and when you click Done the results log should be filled as you like.
savered=type.redirection; type.redirection=16; type.beginresults(); %A=nlsf.fitdata$; ty "Data: %A"; %A=nlsf.func$; ty "Model: %A"; ty "Based on NAR97"; ty; ty "R^2 = $(nlsf.cor^2)"; ty; ty "CO [ppm] = $(nlsf.p1)\t+/- $(nlsf.e1)"; ty "D [cm^2/s] = $(nlsf.p2)\t+/- $(nlsf.e2)"; ty "t [s] = $(nlsf.p3)\t+/- $(nlsf.e3)"; separator 3; type.endresults(); type.redirection=savered;