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 for Programming
 LabTalk Forum
 Basic Math for whole worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

fatihk29

Germany
3 Posts

Posted - 10/04/2012 :  12:15:53 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1378 Posts

Posted - 10/05/2012 :  4:50:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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);
}
Go to Top of Page

fatihk29

Germany
3 Posts

Posted - 10/08/2012 :  05:39:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
greg, thank you very much for your helpful answer. how can i learn the scriptin on origin ?
Go to Top of Page

greg

USA
1378 Posts

Posted - 10/11/2012 :  10:18:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
http://wiki.originlab.com/~originla/ltwiki/index.php?title=Category:LabTalk_Programming
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