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