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
 Declare input data for a global NLFIT with LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

fabif

Germany
12 Posts

Posted - 02/12/2016 :  10:02:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

Edited by - fabif on 02/12/2016 2:23:19 PM

JokerOne

Germany
58 Posts

Posted - 02/12/2016 :  11:10:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?])

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