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
 Declare input data for a global NLFIT with LabTalk

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
fabif Posted - 02/12/2016 : 10:02:16 AM
Origin Ver. 2015G and Service Release: SR2
Operating System: Windows 7

I am trying to create a labtalk script that allows the performing of a nonlinear fit for several datasets with shared global parameters using a selfmade fitting function (HS_Eq21). The input data that has to be fitted should be taken from different worksheets. The nonlinear function consists of three independent (time, Temp, Taup) and a dependent (HS) variable.
What will be the easiest way to include the input data from different worksheets into each of the four variables?
I tried to solve the problem by using the range data type but failed:
e.g.
range time_sheet1 = [Worksheet1]Sheet1!col(1)
range time_sheet2 = [Worksheet1]Sheet2!col(1)
range time =(time_sheet1, time_sheet2)


I want to call the NLFIT session with the following code:

nlbeginr irng:=(time,Temp,Taup,HS) func:=HS_Eq21 nltree:=tt mode:=global;

Thanks for your help!
1   L A T E S T    R E P L I E S    (Newest First)
JokerOne Posted - 02/12/2016 : 11:10:17 AM
I am not sure, if you can combine ("sum up") ranges with
range range_c = (range_a,range_b)?

Maybe (?) range_c = range_a+range_b works ??

However, you might have a typo in:

range time =(time_sheet1 [ONE!], time_sheet1 [ONE AS WELL, MIGHT BE TWO?])


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