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
 please help

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
Catweezle Posted - 06/24/2005 : 12:03:18 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 06/24/2005 : 12:40:55 PM
>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

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