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
 very basic question (using reducedup)

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
seley2 Posted - 11/30/2011 : 7:09:04 PM
I am trying to perform reducedup for multiple of worksheet on a set of data Col(A)=X, Col(B)=Y and produce the results in Col(D), Col(E). However, when I attempt to to this using the following code, it only produces results for the first row of each column. What am I doing wrong? (Sorry, I'm totally new to Labtalk).

loop(jj, 1, page.nLayers)
{
page.active = jj;
range riy = (col(A),col(C));
range roy = (col(D),col(E));
reducedup method:= min tol:=1 iy:= riy oy:= roy;
}


Thank you!

Cheers,
Serena
2   L A T E S T    R E P L I E S    (Newest First)
seley2 Posted - 12/01/2011 : 10:44:17 AM
That was the problem. Thanks a lot!
Drbobshepherd Posted - 12/01/2011 : 10:35:49 AM
Could be that your tolerance value is too large for your input x-values, so the reducedup function determines all your x-values to be duplicates. Delete the "tol:=1" from your X-function call and see if you get the desired effect; this will set the tolerance level to the default 1.0e-8.

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