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
 Rows selection with a specific step
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ado44

France
1 Posts

Posted - 02/10/2020 :  1:26:45 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everyone,

Here is my problem: I want to do an ACP. To select variables I want to select rows between 1 and 100000 with a step of 25000 (for example, so I should have the row number 1, 25000, 50000, 75000 and 100000).
How should I write it in the variables box? ...[1:25000:100000] or else?

Thank you very much for your reply and help.

cpyang

USA
1406 Posts

Posted - 02/10/2020 :  2:18:09 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
you can use the X-Function wxt, like

wxt test:="i==1||mod(i,2500)==0" sel:=1;


Please note that the condition expression must be standard Labtalk notation, while the Worksheet Query dialog you can use more relax notation like "i=1 or mod(i,2500)=0", which is a good place for you to test the condition, then write it out in the more strict form in script.


CP
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