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
 Basic Math for whole worksheet

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
fatihk29 Posted - 10/04/2012 : 12:15:53 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.60
Operating System: Win7 64-bit

Hey, i am trying to get ln values for the data i have. I am writing the code as writing below;

ln([Book6]Sheet1!)

and it replies LabTalk Expression: 31684
3   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 10/11/2012 : 10:18:12 AM
http://wiki.originlab.com/~originla/ltwiki/index.php?title=Category:LabTalk_Programming
fatihk29 Posted - 10/08/2012 : 05:39:00 AM
greg, thank you very much for your helpful answer. how can i learn the scriptin on origin ?
greg Posted - 10/05/2012 : 4:50:52 PM
First, the notation you are using is Range notation which cannot be used to directly address anything.
Instead you declare that range and then use it in your expression.

Second, the notation you used is for a sheet, not a column, and you cannot do math operations on a sheet, because there are no "basic math for whole worksheet".

Instead you can loop over all the columns:

range ra = [Book6]Sheet1!;
loop(ii,1,ra.ncols) {
range rac = %(ra$)!wcol(ii);
rac = ln(rac);
}

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