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
 Statistics on Rows ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

eno

Japan
34 Posts

Posted - 10/31/2005 :  8:22:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version : 7.5SR5
Operating System: Win XP Pro SP2

Hi all,
My question is about LabTalk script for statistics on rows.

1. How to select all/partial data in a row?
2. How to execute?
3. How to get max, mean, min, sd and total(like sum object)?

Thanks,
eno

Mike Buess

USA
3037 Posts

Posted - 11/01/2005 :  07:36:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi eno,

1. The worksheet -s command can be used to select any range of contiguous cells...

worksheet -s c1 r1 c2 r2;
worksheet -s 0 2 0 2; // select all of row 2
worksheet -s 2 2 4 2; // select columns 2,3,4 in row 2


2 & 3. The Statistics on Rows menu command runs the [StatRow] section of the file WKS.ogs. All you need to know should be there.

Mike Buess
Origin WebRing Member
Go to Top of Page

eno

Japan
34 Posts

Posted - 11/01/2005 :  11:47:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,
Thank you for your advice.

When I have the following worksheet(data1),

1,2,3,
4,5,6,

and execute the script,

worksheet -s 1 1 3 2;
_sum=sum(data1,wks.c1,wks.c2);
copy -b 1 _mean data1_d -b 1 -e 2;

the worksheet becomes

1,2,3,2,
4,5,6,5,

That's right!
Again, many thanks.


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