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
 Origin Forum
 Set all column values

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
hpaudel Posted - 07/08/2010 : 2:36:41 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

Hi Origin users,

I have a data sheet with 32 Y columns. I want to subtract a constant number from each column at once. Could you tell how can I do that?

Thank you for help.

hpaudel
1   L A T E S T    R E P L I E S    (Newest First)
larry_lan Posted - 07/09/2010 : 05:10:57 AM
Run this script in command window. More information about LabTalk Scripts, please refer to our LabTalk Guide.

int c = 10;
for(int i = 1; i <= wks.ncols; i++)
{
wcol(i) = wcol(i) - c;
}


Thanks
Larry
OriginLab Technical Services

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