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
Topic
hpaudel
USA
1 Posts
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
larry_lan
China
Posts
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
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