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
 Origin Forum
 average curves with intervall

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
Jengo Posted - 08/02/2010 : 11:19:46 AM
Origin Ver. and Service Release: v 8.1.13.88
Operating System: Win XP

I have 8.000 columns and want to generate the average from every 6 columns.(1-6,7-12,....)

I dont know how to integrate the interval of 6 in my code

avecurves -r 2 avex:=same; (is working for marked columns)

for each column I would use the loop

loop(ii,1,wks.ncols)

{

}

does anybody have a advice for me?
2   L A T E S T    R E P L I E S    (Newest First)
Jengo Posted - 12/13/2010 : 08:08:09 AM
Hallo again! :)

Is the same possible for rows? I found it only for columns in the labtalk guide :/

http://www.originlab.de/www/helponline/Origin/en/programming/mergedProjects/LabTalk/LabTalk/Data_Reduction.html

Thank you very much for the help! :)

Jengo
larry_lan Posted - 08/02/2010 : 9:09:31 PM
Here is an example. Please read the LabTalk Guide for more information.

string sbk$ = %H;
string sst$ = page.active$;
int scol = wks.ncols;
int tcol = scol/6;
string bkname$;
newbook result:=bkname;
for(int ii=1; ii<=tcol; ii++)
{
	rowstats irng:=[sbk$]sst$!$(ii*6-5):$(ii*6) mean:=[bkname$]sheet1!$(ii) sd:=<optional>;
}

Thanks
Larry

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