The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 multiple independent variables in nlbegino
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

phyo

Germany
1 Posts

Posted - 03/29/2017 :  08:35:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

yuki_wu

896 Posts

Posted - 03/29/2017 :  11:54:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000