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
Removing every second column
New Topic
Reply to Topic
Printer Friendly
Author
Topic
alaudo
Germany
Posts
Posted - 07/30/2005 : 08:08:39 AM
Origin Version (Select Help-->About Origin): 6.5
Operating System: Win XP
I have datasets where every second column (starting from 3: 3,5,7,9) contains rubbish data.
Is there a quick way to remove these columns from dataset?
Mike Buess
USA
3037 Posts
Posted - 07/30/2005 : 09:07:23 AM
for(i=2;i>1;i++) {
if( i>=wks.ncols ) break;
del wcol(i+1);
};
Mike Buess
Origin WebRing
Member
chmickey
China
Posts
Posted - 08/01/2005 : 1:23:44 PM
how to use this codes
thanks
mickey
Mike Buess
USA
3037 Posts
Posted - 08/01/2005 : 1:55:41 PM
Hi Mickey,
One-time use...
1. Show the script window (Window > Script Window).
2. Select the code in my previous post and copy (Ctrl+C).
3. Place cursor in script window and paste (Ctrl+V).
4. Select code in script window and press Enter.
If you need to use it many times you can run the script from the Custom Routine button. See the final post in this topic...
http://www.originlab.com/forum/topic.asp?TOPIC_ID=4043
Mike Buess
Origin WebRing
Member
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000