T O P I C R E V I E W |
wangzhou0214 |
Posted - 04/22/2013 : 2:04:16 PM OriginPro 8 SR1 v8.0773 (B773) and Service Release (Select Help-->About Origin): Operating System:windows 7 Professional
I want to fit my datasheet by using the following function: Y = Y0(X-X0)^t
But I did not find this function in drop-down list. How can I do the fitting or do I need to customized the function? |
3 L A T E S T R E P L I E S (Newest First) |
snowli |
Posted - 04/23/2013 : 10:04:44 AM It looks the parameter you defined is uppercase P.
So in function body, they should be consistent, using uppercase P.
Thanks, Snow |
wangzhou0214 |
Posted - 04/22/2013 : 5:47:36 PM Hello,
Thanks for your reply. I tried to define the function by using a similar built-in function. But it says "compile failed", does that mean at this stage I can not use this function? what should I do? Below is a snapshot of the "compile failed" page.
|
snowli |
Posted - 04/22/2013 : 2:24:58 PM Hello,
Origin supports fitting user-defined functions. http://wiki.originlab.com/~originla/howto/index.php?title=Tutorial:User_Defined_Fitting_Function_using_OC
In 8.0, you can choose Tools: Fitting Function Organizer to define fitting functions. You can refer to some similar built-in functions to see how to write the function body.
Don't forget to set initial values when defining the function. E.g. E.g. If your parameters are y0, x0, t, you can set enter this in Parameter Setttings box
InitialValues = 1,2,3(V)
You can save the function. Then open Nonlinear Curve Fitting dialog to fit with it.
if you didn't define initial values, you can go to Parameter tab in NLfit dialog to specify initial values as well and then fit.
Thanks, Snow |
|
|