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
 please help
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Catweezle

Germany
Posts

Posted - 06/24/2005 :  12:03:18 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):
Operating System: Windows XP Pro

Hy all,

I am sorry for this maybe easy questions, but I am a beginner and I need this for the analysis in my study, and i have less time at the moment for learning labtalk. Please can someone help me ?

I would like to delete some columns in a worksheet,more precisely every third column but it would be better if I could choose the number of the column which should be delete. The columns named as C1(y), C2(y)...C30(y). How can I change Y to X [C1(Y)to C1(X)] ?
Also it would be fine to build a difference beetwen two worksheets with for example 10coulmns. How can I write all this in Labtalk ?


I would be happy if you can help me.

Thank you very much and have a nice sunny day.

Mike Buess

USA
3037 Posts

Posted - 06/24/2005 :  12:40:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
>This deletes the ith column...

del wcol(i);

>This deletes column 1,4,7,...

for(i=1;i<=wks.ncols;i+=3) {
del wcol(i);
};

>This makes the ith column an X column...

wo -t i 4;

>This creates a wks containing the differences between corresponding values in Data1 and Data2...

win -a Data1; // activate Data1
win -d; // duplicate
doc -e W {%W=%H}; // find name of new wks
win -a %W; // activate new wks
loop (i,1,wks.ncols) {
wcol(i)-=%(Data2,i); // subtract corresponding cols in Data2
};

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 06/24/2005 12:43:25 PM
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