Origin Ver. and Service Release: Origin Pro 8.5.0G SR1
Operating System: WinXP
I want to average(arithmetic mean) over several columns. I want this to be done using a user input, that specifies over how many columns the averaging has to be done and with which column to start. I tried various things and I have a rough idea what I want:
loop (i,$(firstaveragingcolumn), $(firstaveragingcolumn) + $(numberofcolumns))
{
%M=$(i);
%N=Col;
%O=%M%N;
range %O=wcol(i+1);
}
range colmed = Averages!col(2);
colmed = (col1+col2+....)/$(reps);
I essentially need a loop that spits out all the columns defined per the variables for further processing. I noticed that the ranges are only existent inside the loop, so I'm at a loss what to do here.
In case I didn't get my point across please ask for clarification.