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
 Set all column values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hpaudel

USA
1 Posts

Posted - 07/08/2010 :  2:36:41 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

larry_lan

China
Posts

Posted - 07/09/2010 :  05:10:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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