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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 multiple independent variables in nlbegino

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000