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
 Statistics on Rows ?

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
eno Posted - 10/31/2005 : 8:22:52 PM
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

2   L A T E S T    R E P L I E S    (Newest First)
eno Posted - 11/01/2005 : 11:47:41 PM
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.


Mike Buess Posted - 11/01/2005 : 07:36:34 AM
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

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