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

troadec

UK
2 Posts

Posted - 06/08/2001 :  05:28:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,
I have a big worsheet with many columns.
I would like to get the inverse of each data in all the columns of the worksheet, i.e. data = -(data)
I was doing everything manually first, but it takes time, so is there any possibility to have a script doing that?
Thank you for your help!

Mike Buess

USA
3037 Posts

Posted - 06/08/2001 :  06:58:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This script multiplies all columns by -1...
loop (i,1,wks.ncols) {wcol(i)*=-1};


Hope that helps,

Mike Buess
Origin WebRing member
Go to Top of Page

troadec

UK
2 Posts

Posted - 06/08/2001 :  10:22:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That helps a lot thank you very much!

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