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
 Origin Forum
 User-Defined Function: select variable from book
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Iveta_

United Kingdom
6 Posts

Posted - 09/06/2021 :  2:36:57 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2021b (64-bit) SR2, 9.8.5.212 (Academic)
Operating System: Windows 10

One function I am trying to set up includes an independent variable (I hope this is the right term in this case), which depends on the data that will be fit (i.e. it is not a constant). This variable must be derived from the worksheet itself where the data come from, but it is *not* used in the plotting of the fit.

For example I have columns A (independent variable x ), B (dependent variable y), C (the weighting factor). I also have a column D which contains the additional variable (a vector of values) that has to go into the function. Is there any way to implement this in my user-defined function?

Many thanks!

YimingChen

1609 Posts

Posted - 09/07/2021 :  10:18:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Is col(D) dependent on col(A)?

If yes, you may define col(D) as a function of col(A) in the fitting function.

If no, can you fit with two independent variables col(A) and col(D). You can still plot the fitted y as a function of only col(A) by using the data in the report sheet.

James

Edited by - YimingChen on 09/07/2021 10:18:40 AM
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