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
 stadistics on selected rows in a column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 05/02/2009 :  3:06:12 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin 8pr0 WinXP
does anybodu out there knows the code behing the stadistics on columns buttom?.

It does not show any code when ctrl-shift is co-clicked.

I would like to automatically find mean and sd from selected rows in the same column but I do not find any code for it that works on Origin 8!

thanks, julio

Deanna

China
Posts

Posted - 05/04/2009 :  02:14:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Julio,

I think you can try the stats X-Function.

Suppose you have selected some rows of a column and want to save the mean of them to a variable named mymean and their sd to mysd. Use the following script:



stats mean:=mymean sd:=mysd;
mymean=;
mysd=;



Please see more details on this X-Function here:
http://www.originlab.com/www/helponline/Origin8/en/mergedProjects/X-Function/X-Function/Stats.html

Deanna
OriginLab Technical Services

Edited by - Deanna on 05/04/2009 02:15:41 AM
Go to Top of Page

coll@inia.

Spain
125 Posts

Posted - 05/04/2009 :  1:15:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks Deanna. It works beautifully.

I came across your stats information provided but I was unable to get the code, specially because the ix:=code.

I worked around other solution by marking those rows I did not wanted to be included in the sum(col(x)) function but yours is more simple.

Again thanks, julio
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