T O P I C R E V I E W |
phyo |
Posted - 03/29/2017 : 08:35:00 AM Origin Ver. and Service Release (Select Help-->About Origin): 64Bit b9.3.226 Operating System: Windows 7 Pro
My question is similar to the one discussed here:
http://www.originlab.com/forum/topic.asp?TOPIC_ID=7865
but I have a newer version of Origin, so the workaround suggested in that thread does not work.
Briefly, I would like to fit data in column 2 (type y) with a linear combination of columns 4 and 5 (both type x). I have created a user-defined function in the Fitting Function Builder with two independent variables (a and b), one dependent variable (f), and two parameters (C1 and C2). The function is f = C1*a + C2*b. The function works using manual data selection with Nonlinear Implicit Curve Fit, but I am not able to run the function in my script:
nlbegino iy:=(4,5,2) func:=UseReference nltree:=tt; Returns the error: "Please select at least one XYRange."
Does anyone have advice? Thanks so much! |
1 L A T E S T R E P L I E S (Newest First) |
yuki_wu |
Posted - 03/29/2017 : 11:54:24 PM Hi,
First of all, I will suggest you to redefine your fitting function as an explicit function with multiple independent variables instead of an implicit function. You should take a look at this tutorial: http://www.originlab.com/doc/Tutorials/Fitting-MultiIndepVar
Next, use the nlbeginr X-function in your case: http://www.originlab.com/doc/X-Function/ref/nlbeginr
Hope it helps.
Regards, Yuki OriginLab
|
|
|