The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Origin Lab Talk - data selection - NL fit

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
Iveta_ Posted - 09/20/2021 : 7:55:33 PM
Origin Ver. 9.8.6.212 and Service Release (Select Help-->About Origin):
Operating System: Windows 10

I'm learning LabTalk to automate my long analysis (started yesterday). I can't find a method/attribute that allows me to select the x data when fitting NL function directly from a graph. I am using a user made function. What I do is Data selection => Input data => Rows => By X => 15. Is there a suitable script that can be written for this?

Thanks!
3   L A T E S T    R E P L I E S    (Newest First)
Iveta_ Posted - 09/21/2021 : 2:53:30 PM
This worked in the end, thank you to both of you!

nlbegin iy:=1[x0:10] func:=my_model nltree:= tt;

YimingChen Posted - 09/21/2021 : 09:09:41 AM
Can you use the syntax below to specify the range by x value?
iy:=(1,2)[x1:10]


Please check this page for more details:
https://www.originlab.com/doc/labtalk/guide/range-notation#Specifying_Subrange_Using_X_Values

James
snowli Posted - 09/21/2021 : 09:08:44 AM
Hello,
Do you mean you want to fit a subrange of data defined by X start and end value.

In NLFit dialog, when u set by X and specify X From and to values, the input node shows the syntax to use if in script.

E.g. Suppose you are fitting with column B plot in graph1,
You can use the following input
[Graph1]1!1"B"[x10:20]; //x from 10 to 20
[Graph1]1!1"B"[10:20]; //index from 10 to 20. 10th point to 20th point. [Graph1]1!1"B"[x10:0]; //0 means end point


Thanks, Snow


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