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
 Origin Forum
 User-Defined Function: select variable from book

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/06/2021 : 2:36:57 PM
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!
1   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 09/07/2021 : 10:18:05 AM
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

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