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
 very basic question (using reducedup)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

seley2

USA
2 Posts

Posted - 11/30/2011 :  7:09:04 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Drbobshepherd

USA
Posts

Posted - 12/01/2011 :  10:35:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

seley2

USA
2 Posts

Posted - 12/01/2011 :  10:44:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That was the problem. Thanks a lot!
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